Optimized Dockerfile order
This commit is contained in:
parent
fd7ccd596e
commit
f16c4fbd5f
@ -2,11 +2,12 @@ FROM node:alpine
|
|||||||
|
|
||||||
RUN npm install --global yarn
|
RUN npm install --global yarn
|
||||||
|
|
||||||
ADD dist/ /app/dist
|
|
||||||
ADD public/ /app/public
|
|
||||||
ADD package.json yarn.lock /app/
|
ADD package.json yarn.lock /app/
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
RUN yarn install --production
|
RUN yarn install --production
|
||||||
|
|
||||||
|
ADD dist/ /app/dist
|
||||||
|
ADD public/ /app/public
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT [ "npm", "run", "start" ]
|
ENTRYPOINT [ "npm", "run", "start" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user