创建 docker 镜像的时候使用阿里云的源
This commit is contained in:
@@ -3,6 +3,8 @@ MAINTAINER virusdefender<qduliyang@outlook.com>
|
|||||||
RUN mkdir /var/install/
|
RUN mkdir /var/install/
|
||||||
WORKDIR /var/install/
|
WORKDIR /var/install/
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
RUN rm /etc/apt/sources.list
|
||||||
|
COPY sources.list /etc/apt/
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get -y install software-properties-common python-software-properties
|
RUN apt-get -y install software-properties-common python-software-properties
|
||||||
RUN add-apt-repository -y ppa:webupd8team/java
|
RUN add-apt-repository -y ppa:webupd8team/java
|
||||||
|
|||||||
10
judge/sources.list
Normal file
10
judge/sources.list
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
|
||||||
|
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
|
||||||
|
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
|
||||||
|
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
|
||||||
|
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
|
||||||
|
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
|
||||||
Reference in New Issue
Block a user