From 73627b39375378e6e7db1f735930bf460143341b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E7=8E=89?=
Date: Wed, 22 Jun 2022 06:48:57 +0000
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'1.18/Dockerfile'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
1.18/Dockerfile | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/1.18/Dockerfile b/1.18/Dockerfile
index d20a029..d178a9a 100644
--- a/1.18/Dockerfile
+++ b/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 \
; \