Block a user
external/golang (latest)
Published 2024-12-05 10:00:07 +00:00 by loveuer
Installation
docker pull gitea.loveuer.com/loveuer/external/golang:latestsha256:704c582555b651010f1f52b586973572f0d1c869594aec2e80ac622c1e75361eImage Layers
| ADD alpine-minirootfs-3.20.3-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit |
| ENV GOLANG_VERSION=1.23.4 |
| ENV GOTOOLCHAIN=local |
| ENV GOPATH=/go |
| ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| COPY /target/ / # buildkit |
| RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit |
| WORKDIR /go |
| ENV GO111MODULE=on |
| ENV CGO_ENABLED=0 |
| ENV GOOS=linux |
| ENV GOPROXY=http://10.220.10.17:29119,direct |
| ENV GOINSECURE=10.220.10.35 |
| ENV GOPRIVATE=10.220.10.35 |
| ENV GONOPROXY=10.220.10.35 |
| ENV GONOSUMDB=10.220.10.35 |
| RUN /bin/sh -c sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories && apk add git curl # buildkit |