Files
bbq/Dockerfile
T
ryan 426df48901 Require login to create events when auth is enabled
Gate the home page and POST /events behind auth. Also add sqlite3 CLI
to the Docker image for DB inspection, and gitignore test.db files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 19:07:26 -04:00

16 lines
400 B
Docker

FROM golang:1.26-bookworm AS build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=1 go build -o /bbq .
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates sqlite3 && rm -rf /var/lib/apt/lists/*
COPY --from=build /bbq /usr/local/bin/bbq
VOLUME /data
ENV BBQ_DB=/data/bbq.db
ENV PORT=8080
EXPOSE 8080
CMD ["bbq"]