Browse Source

Made docker stuff better

update-deps
Alex Mikhalev 7 years ago
parent
commit
d78a10f72e
  1. 3
      .dockerignore
  2. 8
      Dockerfile

3
.dockerignore

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

8
Dockerfile

@ -1,10 +1,12 @@ @@ -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" ]

Loading…
Cancel
Save