Docker -> add docker files

feature/2_forms
TBS093A 2021-05-17 12:24:47 +02:00
parent b7917ce3e5
commit 10ba48fd08
2 changed files with 21 additions and 0 deletions

1
.dockerignore 100644
View File

@ -0,0 +1 @@
node_modules/

20
Dockerfile 100644
View File

@ -0,0 +1,20 @@
# pull official base image
FROM node:13.12.0-alpine
# set working directory
WORKDIR /app
# install app dependencies
COPY package.json ./
COPY package-lock.json ./
RUN npm install --silent
# add app
COPY . ./
CMD ["npm", "build"]
# start app
CMD ["npm", "start"]