11FROM openjdk:8-jdk-slim
22
3- RUN apt-get update && apt-get install -y git curl && rm -rf /var/lib/apt/lists/*
3+ RUN apt-get update && apt-get install -y git curl gpg && rm -rf /var/lib/apt/lists/*
44
55ARG user=jenkins
66ARG group=jenkins
@@ -27,12 +27,14 @@ VOLUME /var/jenkins_home
2727# or config file with your custom jenkins Docker image.
2828RUN mkdir -p /usr/share/jenkins/ref/init.groovy.d
2929
30- ENV TINI_VERSION 0.14.0
31- ENV TINI_SHA 6c41ec7d33e857d4779f14d9c74924cab0c7973485d2972419a3b7c7620ff5fd
32-
3330# Use tini as subreaper in Docker container to adopt zombie processes
34- RUN curl -fsSL https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-static-amd64 -o /bin/tini && chmod +x /bin/tini \
35- && echo "$TINI_SHA /bin/tini" | sha256sum -c -
31+ ARG TINI_VERSION=v0.14.0
32+ RUN curl -fsSL https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-$(dpkg --print-architecture) -o /sbin/tini \
33+ && curl -fsSL https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-$(dpkg --print-architecture).asc -o /sbin/tini.asc \
34+ && gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 \
35+ && gpg --verify /sbin/tini.asc \
36+ && rm -rf /sbin/tini.asc /root/.gnupg \
37+ && chmod +x /sbin/tini
3638
3739COPY init.groovy /usr/share/jenkins/ref/init.groovy.d/tcp-slave-agent-port.groovy
3840
@@ -67,7 +69,7 @@ USER ${user}
6769
6870COPY jenkins-support /usr/local/bin/jenkins-support
6971COPY jenkins.sh /usr/local/bin/jenkins.sh
70- ENTRYPOINT ["/bin /tini", "--", "/usr/local/bin/jenkins.sh"]
72+ ENTRYPOINT ["/sbin /tini", "--", "/usr/local/bin/jenkins.sh"]
7173
7274# from a derived Dockerfile, can use `RUN plugins.sh active.txt` to setup /usr/share/jenkins/ref/plugins from a support bundle
7375COPY plugins.sh /usr/local/bin/plugins.sh
0 commit comments