Add Dockerfile

This commit is contained in:
Francesco Esposito 2019-08-26 15:21:35 +02:00
parent 58f203e71a
commit 370cd910a5
2 changed files with 16 additions and 0 deletions

4
.dockerignore Normal file
View File

@ -0,0 +1,4 @@
node_modules
*.log
.git
dist

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM alpine:3.10.2
WORKDIR /app
RUN apk add --update --no-cache nodejs npm
COPY . /app/
RUN npm install
RUN npm run build
CMD ["npm", "run", "serve"]