30
30
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
31
31
apt-get install -y \
32
32
curl \
33
+ unzip \
33
34
apt-transport-https \
34
35
ca-certificates \
35
- curl \
36
36
software-properties-common \
37
37
sudo \
38
38
supervisor \
@@ -42,25 +42,32 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
42
42
zlib1g-dev \
43
43
gettext \
44
44
liblttng-ust0 \
45
- libcurl4-openssl-dev
45
+ libcurl4-openssl-dev && \
46
+ rm -rf /var/lib/apt/lists/* && \
47
+ apt-get clean
46
48
47
49
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
48
50
RUN chmod 644 /etc/supervisor/conf.d/supervisord.conf
49
51
50
52
# Install Docker CLI
51
- RUN curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
53
+ RUN curl -fsSL https://get.docker.com -o- | sh && \
54
+ rm -rf /var/lib/apt/lists/* && \
55
+ apt-get clean
52
56
53
57
# Install Docker-Compose
54
- RUN curl -L "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
58
+ RUN curl -L -o /usr/local/bin/docker-compose \
59
+ "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" && \
55
60
chmod +x /usr/local/bin/docker-compose
56
61
57
62
RUN cd /tmp && \
58
- curl -sL https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz -o git.tgz && \
63
+ curl -sL -o git.tgz \
64
+ https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz && \
59
65
tar zxf git.tgz && \
60
66
cd git-${GIT_VERSION} && \
61
67
./configure --prefix=/usr && \
62
- make && \
63
- make install
68
+ make && \
69
+ make install && \
70
+ rm -rf /tmp/*
64
71
65
72
RUN mkdir -p /home/runner ${AGENT_TOOLSDIRECTORY}
66
73
@@ -73,11 +80,9 @@ RUN GH_RUNNER_VERSION=${GH_RUNNER_VERSION:-$(curl --silent "https://api.github.c
73
80
&& ./bin/installdependencies.sh \
74
81
&& chown -R root: /home/runner \
75
82
&& rm -rf /var/lib/apt/lists/* \
76
- && rm -rf /tmp/* \
77
83
&& apt-get clean
78
84
79
85
COPY entrypoint.sh /entrypoint.sh
80
86
RUN chmod +x /entrypoint.sh
81
87
ENTRYPOINT ["/entrypoint.sh" ]
82
88
CMD ["/usr/bin/supervisord" , "-c" , "/etc/supervisor/conf.d/supervisord.conf" ]
83
-
0 commit comments