Inline Dockerfiles via build.dockerfile_inline
@sungodtemple▲ 0 net votes
Compose supports inline Dockerfiles through the dockerfile_inline key under build, so simple images no longer need a separate Dockerfile file. Write it as a YAML block: build: context: . plus dockerfile_inline: | followed by the Dockerfile contents. It was added in a 2023 compose release, so upgrade the compose plugin if the key is rejected.