mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-05 14:07:01 +00:00
15 lines
294 B
Docker
15 lines
294 B
Docker
FROM golang:alpine as build
|
|
|
|
WORKDIR /workspace
|
|
|
|
RUN apk add ca-certificates
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 go build .
|
|
|
|
FROM scratch
|
|
COPY --from=build /workspace/pages /pages
|
|
COPY --from=build \
|
|
/etc/ssl/certs/ca-certificates.crt \
|
|
/etc/ssl/certs/ca-certificates.crt
|
|
|
|
ENTRYPOINT ["/pages"]
|