11FROM debian:buster-slim
22
3+ ARG GIT_VERSION="2.26.2"
34ARG GH_RUNNER_VERSION
45ARG DOCKER_COMPOSE_VERSION="1.24.1"
56
@@ -29,12 +30,15 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
2930 ca-certificates \
3031 curl \
3132 software-properties-common \
32- git \
3333 sudo \
3434 supervisor \
3535 jq \
3636 iputils-ping \
37- build-essential
37+ build-essential \
38+ zlib1g-dev \
39+ gettext \
40+ liblttng-ust0 \
41+ libcurl4-openssl-dev
3842
3943COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
4044RUN chmod 644 /etc/supervisor/conf.d/supervisord.conf
@@ -46,8 +50,13 @@ RUN curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
4650RUN curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
4751 chmod +x /usr/local/bin/docker-compose
4852
49- RUN rm -rf /var/lib/apt/lists/* && \
50- apt-get clean
53+ RUN cd /tmp && \
54+ curl -sL https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz -o git.tgz && \
55+ tar zxf git.tgz && \
56+ cd git-${GIT_VERSION} && \
57+ ./configure --prefix=/usr && \
58+ make && \
59+ make install
5160
5261RUN mkdir -p /home/runner
5362
@@ -58,7 +67,10 @@ RUN GH_RUNNER_VERSION=${GH_RUNNER_VERSION:-$(curl --silent "https://api.github.c
5867 && tar -zxf actions-runner-linux-x64-${GH_RUNNER_VERSION}.tar.gz \
5968 && rm -f actions-runner-linux-x64-${GH_RUNNER_VERSION}.tar.gz \
6069 && ./bin/installdependencies.sh \
61- && chown -R root: /home/runner
70+ && chown -R root: /home/runner \
71+ && rm -rf /var/lib/apt/lists/* \
72+ && rm -rf /tmp/* \
73+ && apt-get clean
6274
6375COPY entrypoint.sh /entrypoint.sh
6476RUN chmod +x /entrypoint.sh
0 commit comments