feat(build): add env variable for node production

This commit is contained in:
smyalygames
2023-02-27 22:10:17 +00:00
parent d5a3562f4f
commit 20ae7ce153
3 changed files with 6 additions and 8 deletions

View File

@@ -2,6 +2,8 @@ FROM node:18
WORKDIR /opt/app
ENV NODE_ENV=production
COPY --chown=node:node package.json .
COPY --chown=node:node package-lock.json .
COPY --chown=node:node tsconfig.json .
@@ -15,8 +17,6 @@ RUN npx prisma generate
RUN npm run build
ENV NODE_ENV=production
RUN chown node:node /opt/app/
USER node