Skip to content

Commit

Permalink
Fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pteich committed Jun 7, 2020
1 parent 67d433a commit 9b3eabb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ _ "github.com/pteich/caddy-tlsconsul"\n\
func main() {\n\
caddycmd.Main()\n\
}' > main.go && \
go env -w GOPROXY="https://goproxy.io,direct" && \
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
CGO_ENABLED=0 go build -trimpath -tags netgo -ldflags '-extldflags "-static" -s -w' -o /usr/bin/caddy


FROM caddy:2
Expand Down

0 comments on commit 9b3eabb

Please sign in to comment.