Browse Source

更新 '1.18/Dockerfile'

main
李玉 2 years ago
parent
commit
73627b3937
  1. 5
      1.18/Dockerfile

5
1.18/Dockerfile

@ -1,6 +1,6 @@
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
# - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
@ -45,7 +45,7 @@ RUN set -eux; \
build=1; \
url='https://dl.google.com/go/go1.18.2.src.tar.gz'; \
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; \
\
wget -O go.tgz.asc "$url.asc"; \
@ -68,7 +68,6 @@ RUN set -eux; \
if [ -n "$build" ]; then \
apk add --no-cache --virtual .build-deps \
bash \
gcc \
go \
musl-dev \
; \

Loading…
Cancel
Save