cxyokk / ubuntu-nginx

Dockerfile of Ubuntu-Nginx image, with apt-get source patch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ubuntu-nginx

Dockerfile of Ubuntu-Nginx image, with apt-get source patch

创建 Docker 镜像的时候由于 apt-get update 总是会由于 extras.ubuntu 源更新失败而造成整个 Build 中断,所以从 /etc/apt/sources.list 里面注释掉 extras.ubuntu 相关的源然后进行编译。

如果国内更新下载包的时候速度太慢,可以替换成国内的源。Dockerfile 里面 ADD 行中使用 assert 目录中的源列表替换 Image 的系统源。

About

Dockerfile of Ubuntu-Nginx image, with apt-get source patch