From c2d7794835582674804cab54e0d5eb52b83e36f5 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Sun, 20 Feb 2022 20:59:42 +0100 Subject: [PATCH] [ADD]Caddy --- caddy/Dockerfile | 8 ++++++++ caddy/base.yml | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 caddy/Dockerfile create mode 100644 caddy/base.yml 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