Skip to content

Commit

Permalink
Add a Dockerfile to run under Python2.7
Browse files Browse the repository at this point in the history
Even Python2.7 is not easy to get hands on these days, so add a Dockerfile for that as well.
  • Loading branch information
phihag committed Oct 18, 2019
1 parent 3721fa0 commit 10a3a5e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile.python2.7
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 10a3a5e

Please sign in to comment.