-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (35 loc) · 991 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM jenkins/jenkins:latest
USER root
RUN apt-get update \
&& apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
golang \
libltdl-dev \
software-properties-common \
sudo \
unzip \
zip \
python-wheel-common \
python3-pip \
python3-setuptools \
&& \
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \
&& \
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& \
apt-get update \
&& \
apt-get install -y docker-ce-cli \
&& \
rm -rf /var/lib/apt/lists/* \
&& \
echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers \
&& \
pip3 install docker-compose --system --upgrade
USER jenkins
WORKDIR /var/jenkins_home