Created
November 4, 2018 13:07
-
-
Save simonjpartridge/f9a8dc3285c9b11e8a8afaee8b6c3610 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from jenkins/jenkins:lts | |
USER root | |
RUN mkdir -p /usr/local/bin && chown jenkins /usr/local/bin | |
RUN touch /var/run/docker.sock && chmod 777 /var/run/docker.sock | |
USER jenkins | |
ARG DOCKER_CLIENT=docker-18.06.0-ce.tgz | |
RUN cd /tmp/ \ | |
&& curl -sSL -O https://download.docker.com/linux/static/stable/x86_64/${DOCKER_CLIENT} \ | |
&& tar zxf ${DOCKER_CLIENT} \ | |
&& mv ./docker/docker /usr/local/bin \ | |
&& chmod +x /usr/local/bin/docker \ | |
&& rm -rf /tmp/docker* | |
RUN curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \ | |
&& chmod +x /usr/local/bin/docker-compose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment