Docker · hands-on lab
Docker Lab 03: Build Images with a Dockerfile
Write a Dockerfile for a small Python web app, build and tag it, run it with a published port and as a non-root user.
- 45 minutesTime in the lab
- IntermediateLevel
- 6 tasksChecked automatically
- CertificateVerifiable link when you finish
The situation
A developer hands you a tiny Python app. You package it so it runs the same everywhere.
What you will do
- Guided exercise: The app
- Guided exercise: Dockerfile
- Lab: Run and override
- Lab: Run as a non-root user
- CMD and ENTRYPOINTquestion
- COPY or ADDquestion
How it works
The lab opens in your browser: a real terminal or desktop, nothing to install. Work through the tasks, press Check after each one and the portal verifies your work. Stuck? Ask for a hint. Finish every task and you get a certificate page with its own verification link for LinkedIn or your CV.