Python Docker image that installs packages, clones repos, and runs scripts with simple env vars.
50K+
Updated to use Python 3.14
This Docker image is based on the official python image, with additional tools installed such as pip,git and entrypoint scripts to facilitate cloning GitHub repositories and installing packages.
The entrypoint supports:
apt or apkpipDocker Hub:
👉 https://hub.docker.com/r/sumizadocker/python-git
docker run --rm \
-e USER='Sumiza' \
-e REPO='Scripts' \
-e INSTALL='nano' \
-e PIP_INSTALL='requests' \
sumizadocker/python-git \
python main.py
services:
python-git:
image: sumizadocker/python-git:latest
environment:
USER: sumiza
REPO: scripts
PIP_INSTALL: 'requests'
INSTALL: nano
command: "python main.py"
| Variable | Description | Example |
|---|---|---|
INSTALL | Space-separated system packages to install (apt or apk). | INSTALL="nano curl" |
PIP_INSTALL | Space-separated Python packages to install with pip. | PIP_INSTALL="requests numpy" |
TOKEN | GitHub access token for cloning private repos. | TOKEN="ghp_xxx" |
USER | GitHub username to clone repo from. | USER="Sumiza" |
REPO | GitHub repository name to clone. | REPO="Scripts" |
DIRECTORY | Directory to switch into after cloning or before running. | DIRECTORY="src" |
AUTO_INSTALL | Automatically install Python packages based on import statements in .py | AUTO_INSTALL="true" |
Content type
Image
Digest
sha256:aeb03395f…
Size
370.5 MB
Last updated
about 13 hours ago
docker pull sumizadocker/python-git