Update docker
This commit is contained in:
parent
6ee11bc076
commit
61fd46777c
1 changed files with 2 additions and 2 deletions
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue