add docker files

This commit is contained in:
Chika 2020-11-13 18:15:20 +03:00
parent 84c1b6ed54
commit 742f7b9b7f
2 changed files with 18 additions and 0 deletions

13
.Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM node:12-alpine
WORKDIR /home/app
COPY package*.json ./
RUN npm install
COPY build ./
EXPOSE 3001
CMD ["node", "server.js"]

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
node_modules
npm-debug.log
yarn.lock
yarn-error.log
*.log