Layers
FROM ubuntu: latest
RUN apt-get update \
&& apt-get install build-essentials
COPY main.c Makefile /src/
WORKDIR /src
RUN make build
Explanation
This image depicts layers of a Dockerfile. The Dockerfile starts from the Ubuntu:latest image, updates the package list, installs build-essential packages, copies the source code, sets the working directory, and then builds the program.