Update docker

This commit is contained in:
Ruben van de Ven 2020-12-16 10:58:18 +01:00
parent 6ee11bc076
commit 61fd46777c

View file

@ -22,10 +22,10 @@ ENV NODE_ENV production
RUN npm run build:server RUN npm run build:server
RUN npm run build:client RUN npm run build:client
FROM base as production FROM build as production
ENV NODE_ENV=production ENV NODE_ENV=production
COPY package.json package-lock.json index.js ./ COPY package.json package-lock.json index.js ./
RUN npm install --production RUN npm install --production
RUN npm rebuild node-sass RUN npm rebuild node-sass
COPY --from=build $APP_HOME/dist ./dist # COPY --from=build $APP_HOME/dist ./dist
CMD ["npm", "run", "start:prod"] CMD ["npm", "run", "start:prod"]