

Lesson 05 · 13 min
Smaller and safer images
Multi-stage builds, choosing a base image, a non-root user, .dockerignore and vulnerability scanning.
13 minLesson 5 of 5Practice includedAsk AI on any point
A big image pulls slower, deploys longer and carries more packages, which means more vulnerabilities. The "Docker and deploy" course shows a basic multi-stage build and a non-root user. Here we look at what to choose from and how to check the result.
Sign in to continue
The rest of this lesson opens after sign up
The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.