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"]
Jessie
78 MB
(musl libc)
30 MB
FROM python:3-onbuild
5GB (!)
https://lekum.org/post/multistage-dockerfile/
By Alejandro Guirao Rodríguez