We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67d433a commit 9b3eabbCopy full SHA for 9b3eabb
Dockerfile
@@ -10,8 +10,9 @@ _ "github.com/pteich/caddy-tlsconsul"\n\
10
func main() {\n\
11
caddycmd.Main()\n\
12
}' > main.go && \
13
+ go env -w GOPROXY="https://goproxy.io,direct" && \
14
go mod init caddy && go get github.com/caddyserver/caddy/v2@master && go get && \
- CGO_ENABLED=0 go env -w GOPROXY="https://goproxy.io,direct" go build -trimpath -tags netgo -ldflags '-extldflags "-static" -s -w' -o /usr/bin/caddy
15
+ CGO_ENABLED=0 go build -trimpath -tags netgo -ldflags '-extldflags "-static" -s -w' -o /usr/bin/caddy
16
17
18
FROM caddy:2
0 commit comments