What you are going to learn
From Bloated to Production-Ready: A Structured Approach to Dockerfile Optimization
This lab puts you in the role of a developer who has inherited a working but poorly built Dockerfile for a Python Flask API. You will start by capturing a baseline: build time, image size, and layer structure. Then you will audit the Dockerfile yourself, use an AI assistant to expand and validate your findings, and build a prioritized issue matrix before writing a single line of improved code.
By the end of the lab, you will have implemented a production-hardened Dockerfile and benchmarked it against your original baseline. You will leave with a structured workflow for auditing and optimizing Docker images that transfers to any project, along with hands-on practice using AI tools to surface issues, prioritize fixes, and accelerate implementation.