-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (14 loc) · 785 Bytes
/
Dockerfile
File metadata and controls
19 lines (14 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Pinned versions for reproducibility
# Caddy: https://github.com/caddyserver/caddy/releases
# Rate limit plugin: https://github.com/mholt/caddy-ratelimit (no releases, using commit SHA)
FROM caddy:2.11.2-builder AS builder
RUN xcaddy build \
--with github.com/mholt/caddy-ratelimit@b8d8c9a9d99ee352d675cbbe416ec2b489fc8cab
FROM caddy:2.11.2
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
LABEL org.opencontainers.image.source="https://github.com/Coders-Compass/caddy-with-ratelimit"
LABEL org.opencontainers.image.description="Caddy web server with mholt/caddy-ratelimit plugin for HTTP rate limiting"
LABEL org.opencontainers.image.licenses="MIT"
LABEL maintainer="hungrybluedev"
# Verify the build includes the rate_limit module
RUN caddy list-modules | grep rate_limit