2023-10-27 11:10:20 +00:00
|
|
|
FROM node:lts-alpine
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
|
2023-10-27 11:13:17 +00:00
|
|
|
RUN npm install --silent && mv node_modules ../
|
2023-10-27 11:10:20 +00:00
|
|
|
COPY . .
|
|
|
|
RUN chown -R node /usr/src/app
|
|
|
|
USER node
|
|
|
|
CMD ["npm", "start"]
|