Creates an environment for python projects with `gettext` preinstalled.
233
The image in this repo creates an environment for python projects with gettext preinstalled.
Accepts the following build time arguments:
PIP_INDEX_URL. (Optional) Indicates to pip the index from which packages should be installed (default=https://pypi.python.org/simple).PIP_EXTRA_INDEX_URL. (Optional) Indicates to pip an extra index from which packages should be installed in case they're not found in the primary index.PIP_TRUSTED_HOST. (Optional) Indicates to pip that the package repository should be trusted despite being served via HTTP instead of HTTPS.python:3.6-onbuild, python:onbuildThis image creates an environment for python projects where packages can be arbitrarily installed with pip from a requirements.txt file.
This image expects a project directory to include a Dockerfile referencing this image and a requirements file named requirements.txt.
It is based on the official python image. It:
python:3.6 using the official image.gettext.python user with UID=1000 and adds it to the users group./usr/src/app directory as the working directory and sets python as its owner.python as the owner of /usr/local.requirements.txt using pip./usr/src/app in the target container.root to python.Steps 6-7 above are triggered using the onbuild operator in the Dockerfile.
Content type
Image
Digest
Size
295.1 MB
Last updated
almost 9 years ago
docker pull luissalgadofreire/python:3.6-onbuild