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.

Revisions

  1. Roman Plevka created this gist Jul 2, 2019.
    12 changes: 12 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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