Skip to content

Commit

Permalink
Fixing the Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdksh committed Jul 13, 2023
1 parent 8e368de commit 962908e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM caddy:2-alpine -builder AS builder
FROM caddy:2.6.4-alpine AS builder

RUN xcaddy build \
--with github.com/mholt/caddy-ratelimit
--with github.com/porech/caddy-maxmind-geolocation
RUN apk add --no-cache git go && \
GO111MODULE=on go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest && \
/root/go/bin/xcaddy build \
--with github.com/mholt/caddy-ratelimit \
--with github.com/porech/caddy-maxmind-geolocation

FROM caddy:2-alpine
FROM caddy:2.6.4-alpine

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

0 comments on commit 962908e

Please sign in to comment.