dkshs/python_dev

By dkshs

Updated 2 days ago

A Python image with some terminal settings.

Image
Languages & frameworks
0

10K+

dkshs/python_dev repository overview

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.5-slim-trixie3.14.5trixie
3.14.5-slim-bookworm3.14.5bookworm
3.13.13-slim-trixie3.13.13trixie
3.13.13-slim-bookworm3.13.13bookworm
3.12.13-slim-trixie3.12.13trixie
3.12.13-slim-bookworm3.12.13bookworm
3.11.15-slim-trixie3.11.15trixie
3.11.15-slim-bookworm3.11.15bookworm
3.10.20-slim-trixie3.10.20trixie
3.10.20-slim-bookworm3.10.20bookworm

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
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:

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:

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.

Tag summary

Content type

Image

Digest

sha256:bacfd9281

Size

133.5 MB

Last updated

2 days ago

docker pull dkshs/python_dev:3.10.20-slim-bookworm