https://github.com/IITC-College/express-js-app
Lab: Comparing Docker Base Images
Learning Goals
- Understand how the base image affects:
- image size
- build speed
- security surface
- Compare:
node:22
node:22-slim
node:22-alpine
- Understand how changing the base image impacts Docker cache
What You Have
A ready Node.js project will be provided.
The project already includes:
- Express
- TypeScript
- Jest
- Dev dependencies
- Basic application code
You do not need to create the application.
Your focus is Docker image optimization only.
Part 1 — Create a Separate Dockerfile
Tasks