diff --git a/caddy/Dockerfile b/caddy/Dockerfile new file mode 100644 index 0000000..37e0683 --- /dev/null +++ b/caddy/Dockerfile @@ -0,0 +1,8 @@ +FROM caddy:2-builder AS builder +MAINTAINER Yaltik - Fabien Bourgeois + +RUN xcaddy build \ + --with github.com/caddyserver/format-encoder + +FROM caddy:2 +COPY --from=builder /usr/bin/caddy /usr/bin/caddy diff --git a/caddy/base.yml b/caddy/base.yml new file mode 100644 index 0000000..e9bd57c --- /dev/null +++ b/caddy/base.yml @@ -0,0 +1,8 @@ +version: '2.4' +services: + + caddy: + build: + context: . + dockerfile: Dockerfile + image: registry.yaltik.net/caddy:yaltik