Simple python:alpine completed by Bottle+Requests libraries that serve to run web python apps easily
500K+
A simple Python 3 in a docker Alpine linux multi-arch container image completed by Bottle and Requests libraries that serves to run web python apps easily (Total size of the container: ).
Pre-build as multi-arch image from Docker hub with "automated build" option.
image name d3fk/python_in_bottle
docker pull d3fk/python_in_bottle
Docker hub repository: https://hub.docker.com/r/d3fk/python_in_bottle/
This image is provided with 3 TAGS wich are all multi-arch images:
These multi-arch images will fit most of architectures:
For example, if you need to run a web app you could use it this way:
docker run -itd -p 80:80 -v $(pwd)/myapp:/usr/src/myapp -w /usr/src/myapp d3fk/python_in_bottle:latest python your-python-script.py
Then go to your browser at http://localhost to see your web app running
Here is a small "Hello World" example using the Bottle Web Framework
from bottle import route, run
@route('/')
def hello():
return "Hello World!"
run(host='0.0.0.0', port=80, debug=True)
More details on the Bottle Web Framework here: https://bottlepy.org
More details on the Requests python library here: http://docs.python-requests.org
The content of this GitHub code repository is provided under MIT licence . For the embeded libraries and packages please see the related licenses information on their respective official repositories.
Content type
Image
Digest
sha256:26529ed9a…
Size
92 MB
Last updated
3 days ago
docker pull d3fk/python_in_bottle:gcc