|
@ -1,6 +1,6 @@ |
|
|
FROM repository.anxinyun.cn/devops/alpine:3-tz-hw |
|
|
FROM repository.anxinyun.cn/devops/alpine:3-tz-hw |
|
|
|
|
|
|
|
|
RUN apk add --no-cache ca-certificates |
|
|
RUN apk add --no-cache ca-certificates gcc g++ |
|
|
|
|
|
|
|
|
# set up nsswitch.conf for Go's "netgo" implementation |
|
|
# set up nsswitch.conf for Go's "netgo" implementation |
|
|
# - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275 |
|
|
# - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275 |
|
@ -45,7 +45,7 @@ RUN set -eux; \ |
|
|
build=1; \ |
|
|
build=1; \ |
|
|
url='https://dl.google.com/go/go1.18.2.src.tar.gz'; \ |
|
|
url='https://dl.google.com/go/go1.18.2.src.tar.gz'; \ |
|
|
sha256='2c44d03ea2c34092137ab919ba602f2c261a038d08eb468528a3f3a28e5667e2'; \ |
|
|
sha256='2c44d03ea2c34092137ab919ba602f2c261a038d08eb468528a3f3a28e5667e2'; \ |
|
|
# the precompiled binaries published by Go upstream are not compatible with Alpine, so we always build from source here ������ |
|
|
# the precompiled binaries published by Go upstream are not compatible with Alpine, so we always build from source here ������ |
|
|
fi; \ |
|
|
fi; \ |
|
|
\ |
|
|
\ |
|
|
wget -O go.tgz.asc "$url.asc"; \ |
|
|
wget -O go.tgz.asc "$url.asc"; \ |
|
@ -68,7 +68,6 @@ RUN set -eux; \ |
|
|
if [ -n "$build" ]; then \ |
|
|
if [ -n "$build" ]; then \ |
|
|
apk add --no-cache --virtual .build-deps \ |
|
|
apk add --no-cache --virtual .build-deps \ |
|
|
bash \ |
|
|
bash \ |
|
|
gcc \ |
|
|
|
|
|
go \ |
|
|
go \ |
|
|
musl-dev \ |
|
|
musl-dev \ |
|
|
; \ |
|
|
; \ |
|
|