linux-do / override

啥也不是
MIT License
949 stars 243 forks source link

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

Open chaoqunxie opened 2 months ago

chaoqunxie commented 2 months ago

=> [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 commented 2 months ago

佬,必须要有公网ip吗

YangAoLib commented 2 months ago

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