docker fixed

This commit is contained in:
David Friedrich 2024-11-08 09:32:57 +01:00
parent d84777c2bb
commit a62286c3d5
3 changed files with 9 additions and 8 deletions

View file

@ -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