feat: add option for self-hosting via Docker (#1503)
parent
dd1dfc5950
commit
4369d88898
@ -0,0 +1,7 @@
|
||||
*
|
||||
!public/
|
||||
!src/
|
||||
!.npmrc
|
||||
!package-lock.json
|
||||
!package.json
|
||||
!tsconfig.json
|
@ -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
|
@ -0,0 +1,9 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
excalidraw:
|
||||
build: .
|
||||
container_name: excalidraw
|
||||
ports:
|
||||
- "5000:80"
|
||||
restart: on-failure
|
Loading…
Reference in New Issue