docker fixed
This commit is contained in:
parent
d84777c2bb
commit
a62286c3d5
3 changed files with 9 additions and 8 deletions
14
Dockerfile
14
Dockerfile
|
@ -1,20 +1,20 @@
|
|||
|
||||
FROM node:22.9
|
||||
|
||||
# We have to install nodemon globally before moving into the working directory
|
||||
RUN npm install -g nodemon
|
||||
FROM node:alpine
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Install app dependencies
|
||||
# A wildcard is used to ensure both package.json AND package-lock.json are copied
|
||||
COPY package*.json ./
|
||||
|
||||
#RUN npm install -g nodaemon
|
||||
COPY package*.json /usr/src/app/
|
||||
RUN npm install
|
||||
|
||||
# Bundle app source
|
||||
COPY . .
|
||||
#UN npm install -g nodaemon
|
||||
COPY . /usr/src/app/
|
||||
#RUN npm install
|
||||
|
||||
|
||||
EXPOSE 8080
|
||||
CMD ./start.sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue