Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本地docker部署卡在 RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o override #52

Open
chaoqunxie opened this issue Aug 24, 2024 · 2 comments

Comments

@chaoqunxie
Copy link

=> [stage-1 2/5] RUN apk --no-cache add ca-certificates 88.3s
=> => # fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
=> CACHED [builder 2/5] WORKDIR /app 0.0s
=> [builder 3/5] COPY . . 0.1s
=> [builder 4/5] RUN go mod download 2.0s
=> [builder 5/5] RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o override

@chaoqunxie
Copy link
Author

佬,必须要有公网ip吗

@YangAoLib
Copy link

可能是编译太慢了可以考虑使用编译好的镜像
https://hub.docker.com/r/cursor1st/override

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants