Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM jenkins/jenkins:lts
- USER root
- # Install Docker CE binaries
- RUN apt-get update && \
- apt-get -y install apt-transport-https \
- ca-certificates \
- curl \
- gnupg2 \
- software-properties-common && \
- curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg > /tmp/dkey; apt-key add /tmp/dkey && \
- add-apt-repository \
- "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
- $(lsb_release -cs) \
- stable" && \
- apt-get update && \
- apt-get -y install docker-ce
- # Install Docker Compose binary
- RUN curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose && \
- chmod +x /usr/bin/docker-compose
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement