Skip to content

Instantly share code, notes, and snippets.

@ayush--s
Created March 23, 2023 18:43
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 ayush--s/8e7ff7e83b6d842e5b28809e4621c7ff to your computer and use it in GitHub Desktop.
Save ayush--s/8e7ff7e83b6d842e5b28809e4621c7ff to your computer and use it in GitHub Desktop.
FROM caddy:2.6.2-builder-alpine AS builder
RUN xcaddy build \
--with github.com/caddyserver/nginx-adapter \
--with github.com/hairyhenderson/caddy-teapot-module@v0.0.3-0
FROM caddy:2.6.2-alpine
COPY Caddyfile /etc/caddy/Caddyfile
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment