web/Dockerfile
2025-07-14 19:24:36 +02:00

9 lines
262 B
Docker

FROM docker.io/golang:1.24.2 AS builder
WORKDIR /src
COPY . ./
RUN CGO_ENABLED=1 go build -tags "sqlite_math_functions" -o /bin/2b2t-web .
FROM docker.io/debian:latest AS runner
WORKDIR /run
COPY --from=builder /bin/2b2t-web /bin/2b2t-web
CMD ["/bin/2b2t-web"]