Problem Statement
What is the difference between a Dockerfile and a Compose file?
Explanation
A Dockerfile gives instructions for building an image (base, copy, run, cmd). A Compose file describes services (built from images or specified via Dockerfile), networks, volumes and how they relate at runtime. They serve different roles in container workflows.
