pages-server/Dockerfile

16 lines
294 B
Text
Raw Normal View History

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
2022-11-07 22:49:48 +00:00
ENTRYPOINT ["/pages"]