构建 workspace 服务时 卡在这动不了,各种搜资料终于解决了
在 workspace 的 Dockfile 中 增加标红的一段:
find /etc/apt/sources.list.d/ -type f -name "ondrej-ubuntu-php-xenial.list" -exec sed -i.bak -r ‘s#deb(-src)?\s*http(s)?://ppa.launchpad.net#deb\1 https\2://launchpad.proxy.ustclug.org#ig‘ {} \; && \
参考:
https://www.zhenyan.io/zh-cn/Download-Open-Source-Resources-Faster-in-Mainland-China/
https://www.yaozeyuan.online/2018/04/01/2018/04/Ubuntu16.04%E5%AE%89%E8%A3%85PHP7.2/
https://segmentfault.com/a/1190000021076776
https://segmentfault.com/a/1190000021848135
原文:https://www.cnblogs.com/cshaptx4869/p/12374234.html