Skip to content

Commit

Permalink
Set GOPROXY in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bynil committed Oct 26, 2019
1 parent a0b4fc3 commit 90f6612
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deployments/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ WORKDIR $APP_DIR

COPY . .

RUN go env -w GOPROXY=https://goproxy.cn,direct

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags=jsoniter -a -o main cmd/service/main.go

FROM alpine:latest AS production
Expand Down

0 comments on commit 90f6612

Please sign in to comment.