feat: add option for self-hosting via Docker (#1503)

This commit is contained in:
Niko Heikkilä 2020-04-29 08:53:07 +03:00 committed by GitHub
parent dd1dfc5950
commit 4369d88898
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 59 additions and 8 deletions

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM node:14-alpine AS build
ENV NODE_ENV=production
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
RUN npm run build:app
FROM nginx:1.17-alpine
COPY --from=build /usr/src/app/build /usr/share/nginx/html
HEALTHCHECK CMD wget -q -O /dev/null http://localhost || exit 1