mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-23 06:18:59 +00:00
16 lines
294 B
Docker
16 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"]
|