You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.0 KiB
28 lines
1.0 KiB
FROM jenkins/jenkins:2.375.3-lts-jdk11 |
|
|
|
USER root |
|
|
|
# 将工具加入容器 |
|
COPY "./tools/apache-maven-3.9.0" /var/jenkins_home/tools/apache-maven-3.9.0/ |
|
|
|
# 设置权限 |
|
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 |
|
RUN apt install docker-compose -y
|
|
|