wow73611/python-rt is a docker base image that makes it easy to dockerize a standard Python application.
It can automatically bundle a Python application and its dependencies with a single line Dockerfile.
It is based on wow73611/python base image.
Create a Dockerfile in your python application directory with the following content:
FROM wow73611/python-rt
Run the following command in your application directory:
docker build -t my/app .
The image assumes that your application:
requirements.txt file to specify its dependencies8080main.py script as entrypointENTRYPOINT ["/env/bin/python", "/app/other.py"] in its DockerfileWhen building your application docker image, ONBUILD triggers:
/env directory in the containerrequirements.txt into the virtualenv using pip install and leverage docker caching appropriately/app directory in the containerThis project heavily borrowed code from Google's google/python-runtime Docker image.
Content type
Image
Digest
sha256:5e6b24b16…
Size
178.5 MB
Last updated
almost 10 years ago
docker pull wow73611/python-rt