Update docker

This commit is contained in:
Ruben van de Ven 2020-12-16 10:58:18 +01:00
parent 6ee11bc076
commit 61fd46777c
1 changed files with 2 additions and 2 deletions

View File

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