mirror of
https://github.com/Effect-TS/effect.git
synced 2026-11-22 03:25:35 +08:00
A new DockerBuildContext service, built over FileSystem and Path, turns a directory into the tar stream images.build takes, as docker build does: the Dockerfile's own ignore file or else .dockerignore, read with core's IgnoreFile.dockerignore and walked with FileSystem.glob; the Dockerfile and the ignore file always sent, the Dockerfile first for BuildKit; files, directories and unfollowed symbolic links owned by root. NodeDocker's layers provide it. A malformed ignore file or a file that fails to read is the new DockerError reason InvalidBuildContext.