Browse Source

Optimized Dockerfile order

update-deps
Alex Mikhalev 7 years ago
parent
commit
f16c4fbd5f
  1. 5
      Dockerfile

5
Dockerfile

@ -2,11 +2,12 @@ FROM node:alpine @@ -2,11 +2,12 @@ FROM node:alpine
RUN npm install --global yarn
ADD dist/ /app/dist
ADD public/ /app/public
ADD package.json yarn.lock /app/
WORKDIR /app/
RUN yarn install --production
ADD dist/ /app/dist
ADD public/ /app/public
EXPOSE 8080
ENTRYPOINT [ "npm", "run", "start" ]

Loading…
Cancel
Save