You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# Use a Go base image to build the Caddy binary
2
-
FROM golang:1.22.3-alpine AS builder
2
+
FROM golang:1.24-alpine AS builder
3
3
4
4
# Install git and xcaddy (required for cloning the repository and building Caddy)
5
5
RUN apk add --no-cache git wget && \
@@ -14,10 +14,7 @@ RUN git clone https://github.com/fabriziosalmi/caddy-waf.git
14
14
# Navigate into the caddy-waf directory
15
15
WORKDIR /app/caddy-waf
16
16
17
-
# Fetch and install the required Go modules (including Caddy v2)
18
-
RUN go get -v github.com/caddyserver/caddy/v2 github.com/caddyserver/caddy/v2/caddyconfig/caddyfile github.com/caddyserver/caddy/v2/caddyconfig/httpcaddyfile github.com/caddyserver/caddy/v2 github.com/caddyserver/caddy/v2/modules/caddyhttp github.com/oschwald/maxminddb-golang github.com/fsnotify/fsnotify github.com/fabriziosalmi/caddy-waf
19
-
20
-
# Clean up and update the go.mod file
17
+
# Clean up and update the go.mod file (dependencies are already defined in go.mod)
0 commit comments