.flooignore file. floo never uploads your working directory: every
deploy, whether a git push or floo redeploy, downloads the commit from your
connected GitHub repository and builds from that. Two standard files decide what
the build sees: .gitignore decides what is in the commit, and .dockerignore
decides what the Docker build context includes.
How it works
- floo downloads the commit’s source from GitHub. Anything excluded by
.gitignoreis not in the repository, so it never reaches the build server. - Each service builds with its own
pathas the Docker build context, and itsDockerfilemust sit inside that directory. - Docker applies the
.dockerignorenext to thatDockerfilebefore sending the context to the builder.
.dockerignore are downloaded but excluded from the image build.
Keep large and sensitive files out of git
Add them to.gitignore:
floo env set, not in the repository. See
Environment variables.
Trim the Docker build context
.dockerignore is the standard Docker mechanism and works unchanged on floo:
Dockerfile. A smaller context uploads faster and
keeps COPY . . from dragging local artifacts into the image.
Checking the build
The deploy output shows the build progress:.gitignore or .dockerignore, and use a multi-stage build so only the
built output lands in the final image. See
Dockerfiles and the
container contract.