|
|
@ -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" ] |
|
|
|