Sign inSign up

dkshs/python_dev

By dkshs

•Updated 6 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.7-slim-trixie3.14.7trixie
3.14.7-slim-bookworm3.14.7bookworm
3.13.15-slim-trixie3.13.15trixie
3.13.15-slim-bookworm3.13.15bookworm
3.12.14-slim-trixie3.12.14trixie
3.12.14-slim-bookworm3.12.14bookworm
3.11.16-slim-trixie3.11.16trixie
3.11.16-slim-bookworm3.11.16bookworm
3.10.21-slim-trixie3.10.21trixie
3.10.21-slim-bookworm3.10.21bookworm

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:0f6660e93…

Size

137.5 MB

Last updated

6 days ago

docker pull dkshs/python_dev