Add poetry, pre-commit, and other dev-tools to official Python slim Docker image.
FROM playpauseandstop/docker-python:4.3.0- pip 21.1.1
- poetry 1.1.6
- pre-commit 2.12.1
- tox 3.23.0
- virtualenv 20.4.4
- curl 7.64.0
- gcc & g++ 8.3.0
- git 2.20.1
- locales & locales-all
- make 4.2.1
- nano 3.2
- gettext 0.19.8.1
- openssh-client 7.9p1
- rsync 3.1.3
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)
py39->python:3.9.5-slim-busterpy38->python:3.8.10-slim-busterpy37&py36use same base image as in4.2.0
py39->python:3.9.4-slim-busterpy38->python:3.8.9-slim-busterpy37->python:3.7.10-slim-busterpy36->python:3.6.13-slim-buster
py39->python:3.9.1-slim-busterpy38->python:3.8.7-slim-busterpy36&py37use same base image as in3.6.0
py39->python:3.9.0-slim-busterpy36,py37&py38use same base image as in3.6.0
py38->python:3.8.6-slim-busterpy37->python:3.7.9-slim-busterpy36->python:3.6.12-slim-buster
py38->python:3.8.5-slim-busterpy37&py36use same base image as in3.4.0
py38->python:3.8.4-slim-busterpy37->python:3.7.8-slim-busterpy36->python:3.6.11-slim-buster
py38->python:3.8.3-slim-busterpy37->python:3.7.7-slim-busterpy36uses same base image as in3.1.0
py38->python:3.8.2-slim-busterpy37&py36use same base image as in3.1.0
py38->python:3.8.1-slim-busterpy37->python:3.7.6-slim-busterpy36->python:3.6.10-slim-buster
py38->python:3.8.0-slim-busterpy37->python:3.7.5-slim-busterpy36->python:3.6.9-slim-buster
py37->python:3.7.5-slim-stretchpy36->python:3.6.9-slim-stretchpy35->python:3.5.7-slim-stretch
py37->python:3.7.4-slim-stretchpy36->python:3.6.9-slim-stretchpy35->python:3.5.7-slim-stretch
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
To build an image:
makeTo run something, using built image:
make ARGS="..." runTo push image (of specific tag):
make TAG="..." deploy