blob: a4b517f30b5e0cbd71c6755dc585255401bbc80c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
FROM golang:1.24 AS builder
WORKDIR /imageboard
RUN apt-get update && apt-get install -y gcc libc6-dev make git
ENV CGO_ENABLED=1
COPY go.mod go.sum* ./
RUN go mod download
COPY . .
RUN make build
FROM debian:bookworm-slim
WORKDIR /imageboard
RUN apt-get update && apt-get install -y ca-certificates tzdata && rm -rf /var/lib/apt/lists/*
COPY --from=builder /imageboard/bin/imageboard .
COPY --from=builder /imageboard/templates ./templates
COPY --from=builder /imageboard/static ./static
CMD ["./imageboard"]
|