aboutsummaryrefslogtreecommitdiff
path: root/test-python2.7.Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'test-python2.7.Dockerfile')
-rw-r--r--test-python2.7.Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/test-python2.7.Dockerfile b/test-python2.7.Dockerfile
new file mode 100644
index 0000000..9c58f6b
--- /dev/null
+++ b/test-python2.7.Dockerfile
@@ -0,0 +1,11 @@
+FROM python:2.7-alpine
+# Dockerfile to run tests under python2.7
+
+# docker build -t ipaddress-python2.7 . -f test-python2.7.Dockerfile
+RUN apk add make
+RUN pip install flake8
+
+ADD . .
+RUN python test_ipaddress.py
+RUN make lint
+CMD python test_ipaddress.py