2023-10-27 12:10:20 +01: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 12:13:17 +01:00
|
|
|
RUN npm install --silent && mv node_modules ../
|
2023-10-27 12:10:20 +01:00
|
|
|
COPY . .
|
|
|
|
RUN chown -R node /usr/src/app
|
|
|
|
USER node
|
2023-10-27 12:17:38 +01:00
|
|
|
|
|
|
|
RUN npx tsc
|
|
|
|
|
2023-10-27 12:10:20 +01:00
|
|
|
CMD ["npm", "start"]
|