Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

docker-python

Docker Cloud Build Status Docker Pulls

Add poetry, pre-commit, and other dev-tools to official Python slim Docker image.

Usage

FROM playpauseandstop/docker-python:4.0.0

Included dev-tools

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-buster
  • py36, py37 & py38 use same base image as in 3.6.0

3.6.0

  • py38 -> python:3.8.6-slim-buster
  • py37 -> python:3.7.9-slim-buster
  • py36 -> python:3.6.12-slim-buster

3.5.0

  • py38 -> python:3.8.5-slim-buster
  • py37 & py36 use same base image as in 3.4.0

3.4.0

  • py38 -> python:3.8.4-slim-buster
  • py37 -> python:3.7.8-slim-buster
  • py36 -> python:3.6.11-slim-buster

3.3.0

  • py38 -> python:3.8.3-slim-buster
  • py37 -> python:3.7.7-slim-buster
  • py36 uses same base image as in 3.1.0

3.2.0

  • py38 -> python:3.8.2-slim-buster
  • py37 & py36 use same base image as in 3.1.0

3.1.0

  • py38 -> python:3.8.1-slim-buster
  • py37 -> python:3.7.6-slim-buster
  • py36 -> python:3.6.10-slim-buster

3.0.0

  • py38 -> python:3.8.0-slim-buster
  • py37 -> python:3.7.5-slim-buster
  • py36 -> python:3.6.9-slim-buster

2.0.0

  • py37 -> python:3.7.5-slim-stretch
  • py36 -> python:3.6.9-slim-stretch
  • py35 -> python:3.5.7-slim-stretch

1.1.X & 1.2.X

  • py37 -> python:3.7.4-slim-stretch
  • py36 -> python:3.6.9-slim-stretch
  • py35 -> python:3.5.7-slim-stretch

1.0.3

  • py37 -> python:3.7.3-slim-stretch
  • py36 -> python:3.6.8-slim-stretch
  • py35 -> 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

List of all available tags

Development

To build an image:

make

To run something, using built image:

make ARGS="..." run

To push image (of specific tag):

make TAG="..." deploy
You can’t perform that action at this time.