This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
# Use the official Caddy builder
|
||||
FROM caddy:builder AS builder
|
||||
|
||||
# Build Caddy with the Layer 4 module included
|
||||
RUN xcaddy build \
|
||||
--with github.com/mholt/caddy-l4
|
||||
|
||||
# Pull the compiled binary into the final lightweight image
|
||||
FROM caddy:latest
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||
Reference in New Issue
Block a user