Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 452 Bytes
FROM golang:1.12-alpine as caddy_builder
RUN apk add --no-cache git gcc musl-dev
COPY build /workdir/caddy
RUN cd /workdir/caddy && go mod vendor && CGO_ENABLED=0 go build -mod=vendor -o caddy
FROM gcr.io/distroless/base
WORKDIR /srv
EXPOSE 80 443
COPY --from=caddy_builder /workdir/caddy/caddy /bin/caddy
COPY Caddyfile /etc/Caddyfile
COPY public /public
ENTRYPOINT ["/bin/caddy"]
CMD ["--conf", "/etc/Caddyfile", "--log", "stdout", "--agree=true"]
You can’t perform that action at this time.