SpinTheMic
Pro

Interview practice question

Shrinking a 1.2 GB Node.js image

Cloud & DevOps · Docker · Experienced

Your Node.js service image is 1.2 GB. Walk through how you would get it under 200 MB.

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Multi-stage: build stage with dev deps.
  • Production deps only (npm ci --omit=dev).
  • Slim/distroless runtime base.
  • .dockerignore; remove caches.
  • Measure with dive after each step.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics