Basic dockerfile for deployment

This commit is contained in:
E. Navennec 2021-03-31 12:01:29 +02:00
parent bc06e229ea
commit a350a305ad
2 changed files with 20 additions and 0 deletions

6
.dockerignore Normal file
View file

@ -0,0 +1,6 @@
markdown
node_modules
.git
.gitignore
build
README.md

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM node:15.12.0-alpine AS builder
WORKDIR /app
COPY package-lock.json .
COPY package.json .
COPY . .
RUN npm i && npm run build
FROM nginx:alpine
COPY --from=builder /app/build/* /usr/share/nginx/html/