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