Using Alpine Linux 3.12

This commit is contained in:
Jonathan Ervine 2020-07-09 21:43:00 +08:00
parent eb25a87e89
commit d6ebf07125

View File

@ -16,7 +16,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
go build -trimpath -tags netgo -ldflags '-extldflags "-static" -s -w' -o /usr/bin/caddy
# Fetch the latest default welcome page and default Caddy config
FROM alpine:3.11.3 AS fetch-assets
FROM harbor.ervine.org/library/x86_64/alpine:3.12 AS fetch-assets
RUN apk add --no-cache git
@ -29,7 +29,7 @@ RUN git checkout $DIST_COMMIT
RUN cp config/Caddyfile /Caddyfile
RUN cp welcome/index.html /index.html
FROM alpine:3.11.3 AS alpine
FROM harbor.ervine.org/library/x86_64/alpine:3.12 AS alpine
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs