Files
p/Dockerfile
Ian Gulliver e6e90b7b7d Add Dockerfile
2026-03-26 20:42:48 -07:00

13 lines
270 B
Docker

FROM golang:1.22 AS build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o /p .
FROM scratch
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /p /p
COPY static /static
ENTRYPOINT ["/p"]