diff options
| author | Philipp Hagemeister <phihag@phihag.de> | 2019-10-18 02:50:25 +0200 |
|---|---|---|
| committer | Philipp Hagemeister <phihag@phihag.de> | 2019-10-18 02:50:25 +0200 |
| commit | 10a3a5e5f9807c039b6642fe4f64a951d8093cd4 (patch) | |
| tree | f0a5f2e0227b146dcfd33fcddace6c9951ec2dce | |
| parent | 3721fa075a7b7bd7b9da893405073c51f0d4b458 (diff) | |
| download | platform_external_python_ipaddress-10a3a5e5f9807c039b6642fe4f64a951d8093cd4.tar.gz platform_external_python_ipaddress-10a3a5e5f9807c039b6642fe4f64a951d8093cd4.tar.bz2 platform_external_python_ipaddress-10a3a5e5f9807c039b6642fe4f64a951d8093cd4.zip | |
Add a Dockerfile to run under Python2.7
Even Python2.7 is not easy to get hands on these days, so add a Dockerfile for that as well.
| -rw-r--r-- | Dockerfile.python2.7 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Dockerfile.python2.7 b/Dockerfile.python2.7 new file mode 100644 index 0000000..0e92635 --- /dev/null +++ b/Dockerfile.python2.7 @@ -0,0 +1,11 @@ +FROM python:2.7-alpine +# Dockerfile to run tests under python2.7 + +# docker build -t ipaddress-python2.7 . -f Dockerfile.python2.7 +RUN apk add make +RUN pip install flake8 + +ADD . . +RUN python test_ipaddress.py +RUN make lint +CMD python test_ipaddress.py |
