The article provides an in-depth exploration of building Docker images, focusing on the use of BuildKit, a powerful tool that parallels compiler processes by transforming Dockerfiles into container images through an intermediate representation called LLB. It explains how Docker images are typically built from Dockerfiles using commands like RUN, FROM, and COPY, but also delves into programmatically generating LLB for image creation using Go, illustrating the process of building a custom frontend for BuildKit. The comparison between compilers and BuildKit highlights the compiler-like stages in image building, emphasizing the importance of intermediate representations for flexibility across different architectures. The article also introduces Earthly, a tool that leverages BuildKit for efficient and repeatable builds, and discusses the potential for creating custom frontends, such as a mock frontend based on INTERCAL syntax, to enhance Docker build processes. Overall, it offers a comprehensive look at the mechanics of Docker image creation and the possibilities enabled by BuildKit's architecture.