|
|
@ -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/ |
|
|
|