Skip to content

Instantly share code, notes, and snippets.

@kleinmann
Created November 18, 2021 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kleinmann/b04bf8ae504d362c08a1cfab83a354e3 to your computer and use it in GitHub Desktop.
Save kleinmann/b04bf8ae504d362c08a1cfab83a354e3 to your computer and use it in GitHub Desktop.
caddy-docker-proxy
ARG CADDY_VERSION=2
FROM caddy:${CADDY_VERSION}-builder-alpine AS builder
RUN xcaddy build \
--with github.com/lucaslorentz/caddy-docker-proxy/plugin \
--with github.com/greenpau/caddy-auth-portal \
--with github.com/greenpau/caddy-authorize
FROM caddy:${CADDY_VERSION}-alpine
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
CMD ["caddy", "docker-proxy"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment