commit ed26f3b6fb85641594956886fde7b71c3083b755 Author: Roman Vanicek Date: Tue May 5 21:14:24 2026 +0200 Initial commit 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