Building and Running AI, ML, and Data Science Workloads in Containers @ardanlabs
Building and Running AI, ML, and Data Science Workloads in Containers  @ardanlabs
Uploaded September 2025 | Updated November 2026, 6 minutes ago
If we want to run AI, ML, or Data Science workloads in containers (for local development or production on Kubernetes), we need to build container images. Doing that with a Dockerfile is fairly straightforward, but is it the best method?

In this 1-hour webinar, we'll take a well-known speech-to-text model (Whisper) and show how to install its code and dependencies in a container. We'll test various methods and compare the outcomes in terms of image size and build time. We'll also show how to switch versions DRY-style (without maintaining multiple Dockerfiles!), how to leverage newer techniques like BuildKit cache mounts, and we'll discuss other issues like the use of Alpine with Python, progressive image loading, and model loading.

Our specific example will focus on a Python app using packages like PyTorch, but the techniques that we will show can be generalized to other packages and even to other languages.

----

Link to Jerome’s slides:
docs.google.com/presentation/d/1Fg9oKRh_pnhZwaVnCEIuwqVaJqiad11NsRWYwl9ppo0

----

Enjoyed Jérôme's teaching style? Enroll in our Docker & Kubernetes: Intensive Bootcamp where you can train further with him for 2 weeks this October 2025.

Register for the full program & gain access to the Ardan Labs Kubernetes Self-paced Training bundle where you can continue learning on your own long after the bootcamp is over! (all courses taught by Jérôme)

Enroll today: events.ardanlabs.com/products/k8s-intensive-bootcamp

----

You can also join him in his next upcoming free webinar October 1st! Stay tuned to the Ardan Labs channels for the topic announcement.

----

About Jérôme Petazzoni:
Ardan Labs Lead Kubernetes & Docker Instructor

Jérôme was part of the team that built, scaled, and operated the dotCloud PAAS, before that company became Docker. He loves to share what he knows, which led him to give hundreds of talks and demos on containers, Docker, and Kubernetes.

----

Want more from Ardan Labs? You can learn Go, Rust, Kubernetes, Docker & more through our video training, live events, or through our blog!

Online Courses : ardanlabs.com/education
Live Events : ardanlabs.com/events
Blog : ardanlabs.com/blog
Github : github.com/ardanlabs
Twitter/X : https://x.com/ardanlabs
LinkedIn : linkedin.com/company/ardanlabs
Bluesky : https://bsky.app/profile/ardanlabs.com
Building and Running AI, ML, and Data Science Workloads in ContainersWhy Chasing Money First Never WorksConcerns Moving From POC to ProductionDemocratizing AI for BusinessPreserving Legacy with AITurn Plain English Into SQL Queries with Go and LLMsUnderstanding How AI Code Actually WorksStop Coding First: Why AI Planning Changes EverythingAI Tooling in Software DevelopmentTackling AI Scams and RegulationUltimate Go Software Design LIVE: Ep.66AI Democratizing Software Development
Ardan Labs |

Building and Running AI, ML, and Data Science Workloads in Containers

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER