caddy-keydb-codebreaker/Dockerfile

17 lines
337 B
Docker
Raw Permalink Normal View History

2024-08-13 22:21:20 -07:00
# Dockerfile
FROM caddy:builder AS builder
# Install xcaddy
RUN xcaddy build --with <your-plugin-repo-url>
FROM caddy:latest
# Copy the built Caddy binary
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
# Copy your Caddyfile
COPY Caddyfile /etc/caddy/Caddyfile
# Run Caddy
CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile"]