diff --git a/cope2n-fe/Dockerfile b/cope2n-fe/Dockerfile index 0b4e68c..99ed5df 100644 --- a/cope2n-fe/Dockerfile +++ b/cope2n-fe/Dockerfile @@ -13,11 +13,11 @@ USER node ################### FROM node:16-alpine AS build WORKDIR /app/ +ENV NODE_ENV production COPY --chown=node:node package*.json ./ COPY --chown=node:node --from=development /app/node_modules ./node_modules COPY --chown=node:node . . RUN npm run build -ENV NODE_ENV production RUN npm ci --only=production && npm cache clean --force USER node