Images and layers
A Docker image is built up from a series of layers.
•Each layer represents an instruction in the image's Dockerfile.
•Each layer except the very last one is read-only. Consider the following
Dockerfile:
# syntax=docker/dockerfile:1
FROM ubuntu:22.04
LABEL org.opencontainers.image.authors="
[email protected]"
COPY . /app
RUN make /app
RUN rm -r $HOME/.cache
CMD python /app/app.py