Building an image
Lesson 2 of 20 · Ops.Micro
A Dockerfile is a recipe, line by line: start from a base, copy your code, install, run.
FROM picks a base image (Python 3.12). WORKDIR sets the folder. COPY brings files in, RUN executes commands while building, and CMD says what to run when a container starts.
Check yourself
Which instruction says what runs when a container starts?
Do it in the browser: a real DevOps tool, a short mission and instant feedback. No install.
Start this lesson — free