Repair a Fragile Dockerfile
A Dockerfile that builds cleanly and is wrong five ways. Find them from the built image, not from reading, and fix them without changing what the app does.
Project labintermediate~35 minFree
What you'll do
- ✓Pin a base image and use an absolute working directory
- ✓Keep credentials and test data out of the build context
- ✓Give the container a main process that receives signals
- ✓Run the application as a non-root user
Lab outline
- 01The image
- 02The runtime
Before you start
- Containerize the Status API
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.