~/talk

Python Containers: Best Practices

Talkat PyCon Italia 2025 · 2025-05-28..05-31· [devops-and-delivery]
linkedin:d-hervas
slides:none on file

Recommends Yan Smith’s Dockerfiles, uses multi-stage builds and Trivy scans, and demonstrates that running an OS update during image build fixes 20+ vulnerabilities in a week; creates a non-root app user and suggests podman rootless for safer local runs; prefers Python slim or Alpine images depending on C wheel needs and advises precompiling bytecode rather than setting PYTHONDONTWRITEBYTECODE; favors prefer COPY over ADD for transparency and faster, smaller, safer images.

AI-written summary · about

  1. 0:00Introduction to containers
  2. 4:01Why containers are verbose
  3. 5:26Principle of least privilege
  4. 8:17Rootless containers with Podman
  5. 10:49Smaller containers are safer
  6. 13:00Choosing base images
  7. 16:11Updating base images for security
  8. 19:19Miscellaneous tips
  9. 22:15Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.