Skip to content

Instantly share code, notes, and snippets.

@thinkjson
Created February 5, 2018 13:31
Show Gist options
  • Select an option

  • Save thinkjson/7c6c1c6d2958bea29a49567f508ace1e to your computer and use it in GitHub Desktop.

Select an option

Save thinkjson/7c6c1c6d2958bea29a49567f508ace1e to your computer and use it in GitHub Desktop.
Dockerfile to run the async demo from the async port of urllib3 using Python 3
FROM python:3.6-stretch
WORKDIR /application
RUN apt-get update && apt-get install unzip
RUN curl -O https://vorpus.org/~njs/tmp/async-urllib3-demo.zip && unzip -j async-urllib3-demo.zip
RUN pip install trio twisted[tls] urllib3-2.0.dev0+bleach.spike.proof.of.concept.dont.use-py2.py3-none-any.whl
ENTRYPOINT [ "python" ]
CMD [ "async-demo.py" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment