add docker files
This commit is contained in:
parent
84c1b6ed54
commit
742f7b9b7f
13
.Dockerfile
Normal file
13
.Dockerfile
Normal 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
5
.dockerignore
Normal file
@ -0,0 +1,5 @@
|
||||
node_modules
|
||||
npm-debug.log
|
||||
yarn.lock
|
||||
yarn-error.log
|
||||
*.log
|
||||
Reference in New Issue
Block a user