Made docker stuff better

This commit is contained in:
Alex Mikhalev 2017-11-01 00:28:47 -06:00
parent 5a826c7b39
commit d78a10f72e
2 changed files with 8 additions and 3 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
.git
.vscode
node_modules

View File

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