Docker and Python: making them play nicely and securely for Data Science and ML
summary
Practical checklist: use an official Python slim-buster base image rather than Alpine for scientific stacks; prefer Jupyter Docker Stacks or repo2docker instead of hand-rolling everything; split RUNs, prefer COPY, add labels and a .dockerignore, and run containers as a nonroot user. Build compiled dependencies in a builder stage and copy artifacts with multi-stage builds. Automate builds with CI (GitHub Actions) and rebuild images weekly to pick up security fixes and keep runtime images small.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:50Why Docker
- 15:40Jupiter
- 16:49Best practices
- 21:31Security
- 27:00Automation
- 34:27Top tips
related talks
32m10x smaller docker containers for Data Science
01h 02mDocker for Data Science: Reproducibility and Deployment
30mPython Containers: Best Practices
29m5 Best Security Practices for your Production-Ready Containers
43mZero to production ready: a best practices process for Docker packaging
29m5 Security Best Practices For Production Ready Containers
29mZero to production-ready: a best-practices process for Docker packaging
25m0 to production-ready: a best-practices process for Docker packaging
