add excalidraw with support for storing drawings per user [ci skip]

This commit is contained in:
Viktor Barzin 2026-01-25 00:43:14 +00:00
parent 34f13a2afb
commit 5ded70c1ab
5 changed files with 760 additions and 6 deletions

View file

@ -0,0 +1,22 @@
FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY go.mod ./
COPY main.go ./
COPY static/ ./static/
RUN go build -o excalidraw-library .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /app
COPY --from=builder /app/excalidraw-library .
ENV DATA_DIR=/data
ENV PORT=8080
EXPOSE 8080
CMD ["./excalidraw-library"]