From ed26f3b6fb85641594956886fde7b71c3083b755 Mon Sep 17 00:00:00 2001 From: Roman Vanicek Date: Tue, 5 May 2026 21:14:24 +0200 Subject: [PATCH] Initial commit --- .drone.yml | 16 ++++++++++++++++ Dockerfile | 10 ++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..6bac98c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,16 @@ +kind: pipeline +name: default + +steps: +- name: docker + image: plugins/docker + settings: + registry: https://git.ivasoft.cz + username: + from_secret: repo_user + password: + from_secret: repo_pass + repo: git.ivasoft.cz/sw/docker-caddy + tags: + - latest + - ${DRONE_TAG:-latest} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a6747bb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +# Use the official Caddy builder +FROM caddy:builder AS builder + +# Build Caddy with the Layer 4 module included +RUN xcaddy build \ + --with github.com/mholt/caddy-l4 + +# Pull the compiled binary into the final lightweight image +FROM caddy:latest +COPY --from=builder /usr/bin/caddy /usr/bin/caddy \ No newline at end of file