We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 68cfdf6 + 899caa6 commit 6d6804fCopy full SHA for 6d6804f
paddle/scripts/docker/build.sh
@@ -75,9 +75,8 @@ fi
75
76
paddle version
77
78
-# generate production docker image Dockerfile
79
-if [ ${USE_MIRROR} ]; then
80
- MIRROR_UPDATE="sed 's@http:\/\/archive.ubuntu.com\/ubuntu\/@mirror:\/\/mirrors.ubuntu.com\/mirrors.txt@' -i /etc/apt/sources.list && \\"
+if [[ -n ${APT_MIRROR} ]]; then
+ MIRROR_UPDATE="sed -i '${APT_MIRROR}' /etc/apt/sources.list && \\"
81
else
82
MIRROR_UPDATE="\\"
83
fi
0 commit comments