ci-images/caddy/Dockerfile

14 lines
No EOL
329 B
Docker

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