Home Explore Blog CI



docker

1st chunk of `content/includes/compose/build.md`
d0b15418148e147ee4fbbfca3552e677ae734fe60da80e450000000100000134
Build is an optional part of the Compose Specification. It tells Compose how to (re)build an application from source and lets you define the build process within a Compose file in a portable way.  `build` can be either specified as a single string defining a context path, or as a detailed build definition.

Title: Understanding the 'build' Section in Compose Specification
Summary
The 'build' section in a Compose Specification defines how to build (or rebuild) an application from source code. It can be a simple path to the build context or a more detailed build configuration.