docker-python
Add poetry, pre-commit, and other dev-tools to official Python slim Docker image.
Usage
FROM playpauseandstop/docker-python:4.0.0Included dev-tools
- pip 20.2.4
- poetry 1.1.4
- pre-commit 2.8.2
- tox 3.20.1
- virtualenv 20.1.0
- curl 7.64.0
- git 2.20.1
- locales & locales-all
- gcc & g++ 8.3.0
- make 4.2.1
- nano 3.2
- gettext 0.19.8.1
- openssh-client 7.9p1
- rsync 3.1.3
Python versions
By default, docker-python image uses latest stable Python version. But some
other versions supported as well.
List of supported Python versions are (<PY_VERSION> -> base Docker image):
4.0.0
py39->python:3.9.0-slim-busterpy36,py37&py38use same base image as in3.6.0
3.6.0
py38->python:3.8.6-slim-busterpy37->python:3.7.9-slim-busterpy36->python:3.6.12-slim-buster
3.5.0
py38->python:3.8.5-slim-busterpy37&py36use same base image as in3.4.0
3.4.0
py38->python:3.8.4-slim-busterpy37->python:3.7.8-slim-busterpy36->python:3.6.11-slim-buster
3.3.0
py38->python:3.8.3-slim-busterpy37->python:3.7.7-slim-busterpy36uses same base image as in3.1.0
3.2.0
py38->python:3.8.2-slim-busterpy37&py36use same base image as in3.1.0
3.1.0
py38->python:3.8.1-slim-busterpy37->python:3.7.6-slim-busterpy36->python:3.6.10-slim-buster
3.0.0
py38->python:3.8.0-slim-busterpy37->python:3.7.5-slim-busterpy36->python:3.6.9-slim-buster
2.0.0
py37->python:3.7.5-slim-stretchpy36->python:3.6.9-slim-stretchpy35->python:3.5.7-slim-stretch
1.1.X & 1.2.X
py37->python:3.7.4-slim-stretchpy36->python:3.6.9-slim-stretchpy35->python:3.5.7-slim-stretch
1.0.3
py37->python:3.7.3-slim-stretchpy36->python:3.6.8-slim-stretchpy35->python:3.5.7-slim-stretch
To use custom Python version, use tags in your Dockerfile as:
FROM playpauseansdtop/docker-python:<VERSION>-<PY_VERSION>
For example, to use 3.2.0 version of docker-python with Python 3.7 base
image:
FROM playpauseandstop/docker-python:3.2.0-py37
Development
To build an image:
makeTo run something, using built image:
make ARGS="..." runTo push image (of specific tag):
make TAG="..." deploy