DOCKER IMAGES FOR PYTHON

Alejandro Guirao Rodríguez

@lekum

github.com/lekum

docker pull python:latest
3/3.6/latest(2/2.7)

Debian Jessie

271 MB

FROM python:3
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN pip install --no-cache-dir .
CMD ["python", "./your-script.py"]

Dockerfile

3-slim

Jessie

78 MB

3-ALPINE

(musl libc)

30 MB

3-ONBUILD

271 MB

FROM python:3-onbuild

3-WINDOWSSERVERCORE

5GB (!)

BONUS: Create THINNER images with multi-stage Dockerfiles (docker 17.05+)

Docker images for Python

By Alejandro Guirao Rodríguez

Docker images for Python

  • 2,060