Alex Mikhalev
7 years ago
2 changed files with 8 additions and 3 deletions
@ -1,10 +1,12 @@ |
|||||||
FROM node:alpine |
FROM node:alpine |
||||||
|
|
||||||
|
RUN npm install --global yarn |
||||||
|
|
||||||
ADD dist/ /app/dist |
ADD dist/ /app/dist |
||||||
ADD public/ /app/public |
ADD public/ /app/public |
||||||
ADD package.json /app/ |
ADD package.json yarn.lock /app/ |
||||||
WORKDIR /app/ |
WORKDIR /app/ |
||||||
RUN npm install --production |
RUN yarn install --production |
||||||
|
|
||||||
EXPOSE 8080 |
EXPOSE 8080 |
||||||
ENTRYPOINT [ "npm", "run", "start" ] |
ENTRYPOINT [ "npm", "run", "start" ] |
||||||
|
Loading…
Reference in new issue