DevSecOps: Securing Code, Dependencies and Containers
Exit

Lesson 8 of 11 · Containers and the delivery chain

Writing a hardened Dockerfile

50 min Debian 12

Objective

Turn a Dockerfile "that works" into a safe Dockerfile: a small, reproducible image, without secrets, that does not run as root and that contains only what the application needs in production. You will also be able to have it checked automatically by hadolint and run the container read-only.

This lesson is part of the full course

Unlock DevSecOps: Securing Code, Dependencies and Containers to read every lesson, do the exercises, access the simulations and earn your certificate.

Already enrolled? Log in.