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