Skip to content

Commit

Permalink
build:移除 GOPROXY 环境变量
Browse files Browse the repository at this point in the history
移除了 Dockerfile 和 DockerfileBuild 中的 GOPROXY 环境变量设置。这个变量可能与某些用户的网络环境不兼容,导致构建失败。此更改旨在提高构建的通用性和可靠性。
  • Loading branch information
aide-cloud committed Dec 26, 2024
1 parent 603b163 commit 15007a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM aidemoonio/build:latest AS builder
COPY . /src
WORKDIR /src

RUN GOPROXY=https://goproxy.cn make build
RUN make build

#FROM debian:stable-slim
FROM aidemoonio/deploy:latest
Expand Down
2 changes: 1 addition & 1 deletion DockerfileBuild
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138 \
RUN apt-get update -y \
&& apt-get install -y protobuf-compiler

RUN GOPROXY=https://goproxy.cn go install google.golang.org/protobuf/cmd/protoc-gen-go@latest \
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest \
&& go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest \
&& go install github.com/go-kratos/kratos/cmd/kratos/v2@latest \
&& go install github.com/go-kratos/kratos/cmd/protoc-gen-go-http/v2@latest \
Expand Down

0 comments on commit 15007a5

Please sign in to comment.