python
Public repository for ragedunicorn docker python images
1.2K

A minimal Python image on Alpine Linux, shipping a pinned standalone CPython decoupled from the Alpine release.
# Pull latest version
docker pull ragedunicorn/python:latest
# Or pull specific version
docker pull ragedunicorn/python:3-alpine3.24.0-1
# Run Python interactively
docker run -it --rm ragedunicorn/python:latest
# Run a Python script
docker run -v $(pwd):/app ragedunicorn/python:latest script.py
docker run -v $(pwd):/app ragedunicorn/python:latest script.py
docker run -it --rm ragedunicorn/python:latest
docker run --rm ragedunicorn/python:latest -c "print('Hello, World!')"
# Install and run pytest
docker run -v $(pwd):/app ragedunicorn/python:latest /bin/sh -c "pip install pytest && python -m pytest"
# Install and use Black formatter
docker run -v $(pwd):/app ragedunicorn/python:latest /bin/sh -c "pip install black && python -m black ."
FROM ragedunicorn/python:latest
# Install additional packages
USER root
RUN pip install django flask fastapi
USER python
# Your custom configuration
WORKDIR /app
COPY . .
CMD ["python", "app.py"]
This image uses semantic versioning that includes all component versions:
Format: {python_major_version}-alpine{alpine_version}-{build_number}
3-alpine3.24.0-1 - Initial release with Python 3 and Alpine 3.24.03-alpine3.24.0-2 - Rebuild of same versions (bug fixes, security patches)3-alpine3.24.1-1 - Alpine Linux patch updatelatest - Most recent stable releaseThe pinned CPython patch version is fixed per release and updated independently of Alpine. When updates are available through automated dependency management, new releases are created with appropriate version tags.
PYTHONUNBUFFERED=1 - Unbuffered outputThe default working directory is /app. Mount your code here:
docker run -v $(pwd):/app ragedunicorn/python:latest your_script.py
MIT License - See GitHub repository for details.
Content type
Image
Digest
sha256:a0f1c2e1a…
Size
31.5 MB
Last updated
about 1 month ago
docker pull ragedunicorn/python