-
-
Save scalp42/1e9246669ec1c6ff6f9e to your computer and use it in GitHub Desktop.
Example wheel upload to simple PyPI on S3
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 ubuntu:14.04 | |
ENV BUCKET your-s3-bucket | |
RUN apt-get update && apt-get install -y wget \ | |
build-essential python-dev \ | |
libssl-dev libffi-dev \ | |
libpcre3-dev \ | |
libmemcached-dev \ | |
libpq-dev \ | |
libxml2-dev libxslt1-dev \ | |
libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk | |
RUN wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py | |
RUN pip install pip2pi awscli \ | |
pyOpenSSL ndg-httpsclient pyasn1 | |
ADD requirements.txt requirements.txt | |
RUN mkdir -p /dist && pip wheel --wheel-dir=/dist -r requirements.txt | |
RUN dir2pi --normalize-package-names /dist | |
CMD aws s3 sync --acl=public-read /dist/simple s3://$BUCKET/ubuntu-1404 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment