Python eve from nicolaevladescu/python-eve however updated the port from 8000 to 5000.
221
python2 or python3 depending on the tag you choose2.7 : (2.7.12/Dockerfile)3.5 : (3.5.2/Dockerfile)Pull it from the official docker registry:
docker pull nicolaevladescu/python-eve:<tag>
Test that python is installed and working:
docker run --rm --name python-eve nicolaevladescu/python-eve:2.7 python --version
The default CMD runs a python main.py from /src.
You can mount a folder from the host to /src and run it with the default CMD.
docker run --detach --volume $(pwd):/src --name python-eve nicolaevladescu/python-eve:2.7
Or run a file other than main.py:
docker run --detach --volume $(pwd):/src --name python-eve nicolaevladescu/python-eve:2.7 python run.py
gosu with su-exec because it's only 10KB instead of 1.8MB.Content type
Image
Digest
Size
33.5 MB
Last updated
almost 8 years ago
docker pull zhangtemplar/docker-python-eve:2.7.12