Skip to content

Commit 9b3eabb

Browse files
committed
Fix Dockerfile
1 parent 67d433a commit 9b3eabb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ _ "github.com/pteich/caddy-tlsconsul"\n\
1010
func main() {\n\
1111
caddycmd.Main()\n\
1212
}' > main.go && \
13+
go env -w GOPROXY="https://goproxy.io,direct" && \
1314
go mod init caddy && go get github.com/caddyserver/caddy/v2@master && go get && \
14-
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
1516

1617

1718
FROM caddy:2

0 commit comments

Comments
 (0)