Skip to content

Instantly share code, notes, and snippets.

@rplevka
Created July 2, 2019 20:23
Show Gist options
  • Save rplevka/2ee4907b7ed074e7b8eedaa0da86cfc4 to your computer and use it in GitHub Desktop.
Save rplevka/2ee4907b7ed074e7b8eedaa0da86cfc4 to your computer and use it in GitHub Desktop.
dockerized-jenkins-master-dockerfile
FROM jenkins/jenkins:lts-alpine
USER root
RUN apk add --no-cache python3 py3-virtualenv curl-dev libxml2-dev libxslt-dev grep sed && \
python3 -m ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache
RUN apk add pkgconf
RUN apk add build-base
RUN apk add python3-dev
# RUN echo "xxx.xxx.xxx.xxx foo.bar.com" >> /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment