9 lines
262 B
Docker
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"]
|