diff --git a/Dockerfile b/Dockerfile index d988461d..b9a7ee6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,14 @@ -FROM jenkins/jenkins:2.414.2-jdk11 +FROM jenkins/jenkins:lts-jdk11 USER root -RUN apt-get update && apt-get install -y lsb-release python3-pip -RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \ - https://download.docker.com/linux/debian/gpg -RUN echo "deb [arch=$(dpkg --print-architecture) \ - signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \ - https://download.docker.com/linux/debian \ - $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list -RUN apt-get update && apt-get install -y docker-ce-cli +RUN apt-get update && apt-get install -y lsb-release python3-pip \ + && curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \ + https://download.docker.com/linux/debian/gpg \ + && echo "deb [arch=$(dpkg --print-architecture) \ + signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \ + https://download.docker.com/linux/debian \ + $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list \ + && apt-get update && apt-get install -y docker-ce-cli \ + && rm -rf /var/lib/apt/lists/* USER jenkins -RUN jenkins-plugin-cli --plugins "blueocean:1.25.3 docker-workflow:1.28" \ No newline at end of file +RUN jenkins-plugin-cli --plugins blueocean docker-workflow +HEALTHCHECK --interval=30s --timeout=3s CMD curl --fail http://localhost:8080 || exit 1 \ No newline at end of file