Browse Source

更新 'Dockerfile'

main
李玉 2 years ago
parent
commit
452d45e5c6
  1. 7
      Dockerfile

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

Loading…
Cancel
Save