|
|
@ -8,3 +8,21 @@ COPY "./tools/apache-maven-3.9.0" /var/jenkins_home/tools/apache-maven-3.9.0/ |
|
|
|
# 设置权限 |
|
|
|
# 设置权限 |
|
|
|
RUN chmod -R 777 /var/jenkins_home/tools |
|
|
|
RUN chmod -R 777 /var/jenkins_home/tools |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 更换debian阿里软件源 |
|
|
|
|
|
|
|
RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak |
|
|
|
|
|
|
|
RUN cat <<EOF>/etc/apt/sources.list \ |
|
|
|
|
|
|
|
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib \ |
|
|
|
|
|
|
|
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib \ |
|
|
|
|
|
|
|
deb http://mirrors.aliyun.com/debian-security buster/updates main \ |
|
|
|
|
|
|
|
deb-src http://mirrors.aliyun.com/debian-security buster/updates main \ |
|
|
|
|
|
|
|
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib \ |
|
|
|
|
|
|
|
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib \ |
|
|
|
|
|
|
|
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib \ |
|
|
|
|
|
|
|
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib \ |
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN apt-get clean |
|
|
|
|
|
|
|
RUN apt-get update |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 安装docker-compose |
|
|
|
|
|
|
|
RUM apt install docker-compose -y |
|
|
|