Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kanagawawave authored Jun 27, 2024
1 parent 35e5519 commit 932bd21
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Description: Dockerfile for building caddy with plugins
FROM caddy:2.7.6-builder AS builder

# Build caddy with plugins
RUN xcaddy build \
--with github.com/mholt/caddy-l4 \

# Build final image
FROM caddy:2.7.6

# Copy caddy from builder
COPY --from=builder /usr/bin/caddy /usr/bin/caddy

# Run caddy binary
ENTRYPOINT ["/usr/bin/caddy"]

0 comments on commit 932bd21

Please sign in to comment.