Maj packages

This commit is contained in:
Angels-dev
2024-08-03 18:50:04 +02:00
parent f7917f773e
commit 521d530dbd
6 changed files with 20 additions and 42 deletions

View File

@@ -1,10 +1,14 @@
FROM node:latest
FROM node:alpine as base
ENV NODE_ENV=production
WORKDIR /usr/src/app
COPY ["package.json", "package-lock.json*", "./"]
RUN npm install --production --silent && mv node_modules ../
RUN npm install --production --verbose && mv node_modules ../
COPY . .
RUN chown -R node /usr/src/app
USER node
EXPOSE 3000
CMD ["npm", "start"]
CMD ["npm", "start"]