From d78a10f72eea34de1c27981ee01dc99d97aefd29 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Wed, 1 Nov 2017 00:28:47 -0600 Subject: [PATCH] Made docker stuff better --- .dockerignore | 3 +++ Dockerfile | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..a9dde4a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.git +.vscode +node_modules diff --git a/Dockerfile b/Dockerfile index 094f057..e0c25b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] \ No newline at end of file +ENTRYPOINT [ "npm", "run", "start" ]