Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshishThakur/d767c0ebc2340021377607397bac24a9 to your computer and use it in GitHub Desktop.
Save AshishThakur/d767c0ebc2340021377607397bac24a9 to your computer and use it in GitHub Desktop.
Jenkins Dockerfile
FROM jenkins/jenkins:lts-jdk11
# if we want to install via apt
USER root
RUN apt-get update \
&& apt-get install -y \
ca-certificates \
curl \
gnupg \
lsb-release \
software-properties-common \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" \
&& apt-cache policy docker-ce \
&& apt-get update \
&& apt-get install -y \
docker-ce \
&& usermod -aG docker jenkins \
&& curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.22.0/pack-v0.22.0-linux.tgz" | tar -C /usr/local/bin/ --no-same-owner -xzv pack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment