mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-29 09:18:28 +01:00
feat(build): add env variable for node production
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user