@@ -155,6 +155,12 @@ It uses the following variable:
| `app-dir` / `CNB_APP_DIR` | Absolute root directory in final image | `/workspace` |
| `src-app-dir` / `CNB_SRC_APP_DIR` | Relative path to the application source code base directory in your repository | `.` |
All files from your application source code base directory (as defined by the `CNB_SRC_APP_DIR` variable) are copied to the build workspace directory (`CNB_APP_DIR`) prior to building the image.
You may use a `.cnbignore` file in the source base directory to exclude files and directories from being copied to the build workspace. `.cnbignore` uses the same syntax as `.gitignore`, but supports only a subset of its features depending on the tools available in the builder image. For instance negation patterns
are only supported if the builder image includes the `rsync` command (e.g. [`heroku/builder:24`](https://github.com/heroku/builder)).
The `.git` directory is always excluded from the build context, even if not specified in `.cnbignore`.
<!--
In addition to the above variables, the CNB template also supports all configuration means supported