default_image_ignore_file

baseten.sandbox.default_image_ignore_file(options)

Report whether a path is left out of a pushed build context by default.

Applied when the directory has no .dockerignore. Its result is the same as this .dockerignore:

**/.blaxel
**/.env.build
**/.docker
**/.git
**/dist
**/.venv
**/venv
**/node_modules
**/.env
.env*
**/.next
**/__pycache__

So each of those names is left out at any depth, as a file or as a directory with everything in it, and a name starting with .env is left out at the root. To extend the defaults, copy them into a .dockerignore.

Parameters:

options (ImageIgnoreFileOptions) – The candidate path.

Return type:

bool