45:54This Is How You Write an Efficient Python Dockerfile
From the creator
👷 Review code better and faster with my 3-Factor Framework: https://arjan.codes/diagnosis. In this video, I’ll take you step-by-step through creating an optimized and efficient Docker image. I’ll cover picking the right base image, removing clutter from your Dockerfile, making it more secure, and a few things that you probably didn’t know where possible. 🔥 GitHub Repository: https://git.arjan.codes/2025/efficient-python-dockerfile. 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 0:23 1. Starting Point 3:04 2. Choose The Right Base Image 5:18 3. Do Not Use the Latest Tag 6:21 4. Remove Unnecessary Dependencies 7:25 5. Clean Up Dependencies 8:06 6. Use UV 9:10 7. Use a Multi Stage Build 11:42 8. COPY Only The Things You Need 13:26 9. Load Secrets Using The Secret Mount Type 15:11 10. Run as a local user 16:34 Frustrations 18:15 Final Thoughts #arjancodes #softwaredesign #python
Published 2025-03-14 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.
Keep exploring Learn to Code
45:54
40:14
1:02:24
58:02Tris Warkentin - Introducing Gemma, Google's family of open models
Google for Developers
22:52Season 4 - Gus and Ashley talk AI visionaries, developers, and consumers
Google for Developers
1:00:18
03:49Announcing Gemma 3n, Imagen 4, and more! - Google Developer News June 2025
Google for Developers