Review Glossary FR

Size

Eyes

Finish a part in any dojo to unlock the next eyes.

Day 36 10 min

Dockerfile lines

1 / 14 · ≈ 9 min left

The problem

The orders service is a small Node.js API. You write its Dockerfile from an empty file, one line per rep, so that the image runs as a normal user and starts with docker run orders.

The build context is the folder orders/. It holds package.json (one dependency, ms, and one dev dependency, is-number), package-lock.json, server.js (an HTTP server on port 3000) and worker.js (prints worker run and exits). The base image is node:22-bookworm-slim, a Debian image that has a node user with uid 1000. The app goes in /app.