Add poetry, pre-commit, and other dev-tools to official Python slim stretch Docker image.
FROM playpauseandstop/docker-python
- pip 19.3.1
- virtualenv 16.7.7
- poetry 0.12.17
- pre-commit 1.20.0
- tox 3.14.0
- curl 7.52.1
- git 2.11.0
- locales & locales-all
- gcc 6.3.0
- make 4.1
- nano 2.7.4
- openssh-client
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):
py35->python:3.5.7-slim-stretchpy36->python:3.6.9-slim-stretchpy37->python:3.7.5-slim-stretch
py35->python:3.5.7-slim-stretchpy36->python:3.6.9-slim-stretchpy37->python:3.7.4-slim-stretch
py35->python:3.5.7-slim-stretchpy36->python:3.6.8-slim-stretchpy37->python:3.7.3-slim-stretch
To use custom Python version, use tags in your Dockerfile as:
FROM playpauseansdtop/docker-python:<VERSION>-<PY_VERSION>
For example, to use 1.0.3 version of docker-python with Python 3.6 base
image:
FROM playpauseandstop/docker-python:1.0.3-py36
To build an image:
docker build -t playpauseandstop/docker-python .To run something, using given image:
docker run --rm -it playpauseandstop/docker-python CMDTo push image (or specific version):
docker push playpauseandstop/docker-python:VERSION