Created
February 5, 2018 13:31
-
-
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
This file contains hidden or 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 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