ci-images/caddy/Dockerfile

14 lines
329 B
Text
Raw Permalink Normal View History

FROM docker.io/caddy:builder-alpine AS builder
2022-12-30 13:39:09 +00:00
RUN xcaddy build \
--with magnax.ca/caddy/gopkg
FROM gcr.io/distroless/static AS final
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
2022-12-30 13:39:09 +00:00
COPY config/caddy.json /etc/caddy/caddy.json
EXPOSE 3000
ENTRYPOINT [ "/usr/bin/caddy" ]
2022-12-30 13:39:09 +00:00
CMD [ "run", "--config=/etc/caddy/caddy.json" ]