Skip to content

Commit

Permalink
dockerfile: golang use cn proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
luxcgo committed May 26, 2023
1 parent 04763a2 commit 941f2fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM golang:1.16
WORKDIR /app/gohttpserver
ADD . /app/gohttpserver
RUN go env -w GOPROXY=https://goproxy.cn
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-X main.VERSION=docker' -o gohttpserver

FROM debian:stretch
Expand Down

0 comments on commit 941f2fc

Please sign in to comment.