mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
00e8a41c89
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/111 Reviewed-by: 6543 <6543@noreply.codeberg.org> Co-authored-by: dorianim <mail@dorian.im> Co-committed-by: dorianim <mail@dorian.im>
15 lines
No EOL
297 B
Docker
15 lines
No EOL
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"] |