From 452d45e5c6aa781dd677e2b1fdcd4863b5da4352 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E7=8E=89?=
Date: Wed, 22 Jun 2022 09:48:25 +0000
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'Dockerfile'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Dockerfile | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 4379716..72a26ee 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,7 @@
FROM docker:20.10.17-dind
+COPY switch-auth.sh /usr/local/bin/
+
RUN sed -i "s@https://dl-cdn.alpinelinux.org/@https://mirrors.huaweicloud.com/@g" /etc/apk/repositories; \
mkdir -p /etc/docker; \
echo $'{ \n\
@@ -17,6 +19,7 @@ RUN sed -i "s@https://dl-cdn.alpinelinux.org/@https://mirrors.huaweicloud.com/@g
"auth": "==auth==" \n\
} \n\
} \n\
-}' >> /root/.docker/config.json.temp
+}' >> /root/.docker/config.json.temp; \
+ chmod +x /usr/local/bin/switch-auth.sh
+
-COPY switch-auth.sh /usr/local/bin/