Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pteich committed Jan 3, 2022
1 parent 85f33b7 commit 395bf28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.15 AS builder
FROM golang:1.17 AS builder

WORKDIR /workspace
RUN echo 'package main\n\
Expand All @@ -11,7 +11,7 @@ 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@v2.2.0 && go get && \
go mod init caddy && go get github.com/caddyserver/caddy/v2@v2.4.6 && go get && \
CGO_ENABLED=0 go build -trimpath -tags netgo -ldflags '-extldflags "-static" -s -w' -o /usr/bin/caddy


Expand Down

0 comments on commit 395bf28

Please sign in to comment.