Merge pull request #6 from atomheartother/master

Dockerize application
This commit is contained in:
ad 2021-03-31 17:11:32 +04:00 committed by GitHub
commit 619ab7b3ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

6
.dockerignore Normal file
View file

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

19
Dockerfile Normal file
View file

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