Python DEV

A Python image with some terminal settings.

Python Dev Python Image

Build Status Docker Pulls

An Python image with uv, zsh, Oh My Zsh, git, gpg, gnupg, gpg-agent, socat, curl, wget, fonts-powerline; using theme PowerLevel10k and plugins: git, git-flow, fast-syntax-highlighting, zsh-autosuggestions, zsh-completions.

🏷 Tags

To use a specific combination of Python see the following table of available image tags.

TagPython versionDistro
3.14.0-slim-bookworm3.14.0slim-bookworm
3.14.0-slim-trixie3.14.0slim-trixie
3.13.9-slim-bookworm3.13.9slim-bookworm
3.13.9-slim-trixie3.13.9slim-trixie
3.12.12-slim-bookworm3.12.12slim-bookworm
3.12.12-slim-trixie3.12.12slim-trixie
3.11.14-slim-bookworm3.11.14slim-bookworm
3.11.14-slim-trixie3.11.14slim-trixie
3.10.19-slim-bookworm3.10.19slim-bookworm
3.10.19-slim-trixie3.10.19slim-trixie

See more

Supported versions

Python versionStartEnd
3.142025-10-072030-10
3.132024-10-072029-10
3.122023-10-022028-10
3.112022-10-242027-10
3.102021-10-042026-10

Versions are kept up to date using official sources. For Python we scrape the Supported Versions table at devguide.python.org/versions.

How to use this image

Create a Dockerfile in your Python app project

Docker IconDockerfile
FROM dkshs/python_dev:latest
 
USER ${USERNAME}
 
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
 
COPY --chown=${USERNAME}:${USERNAME} . .

You can then build and run the Docker image:

terminal
docker build -t my-python-app .
docker run -it --rm my-python-app

Run a single Python script

For many simple, single file projects, you may find it inconvenient to write a complete Dockerfile. In such cases, you can run a Python script by using the Python Docker image directly:

terminal
docker run -it --rm -v "$PWD":/home/dev-user/app -u dev-user dkshs/python_dev

All images have a default user dev-user with uid 1000 and gid 1000.

Disclaimer

This image is intended for development use only. Use it at your own risk!

License

This project is under the MIT license.