16 lines
337 B
Docker
16 lines
337 B
Docker
# 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"]
|