docs: add info about dockerignore
Signed-off-by: Nikolai Thingnes Leira <140617589+NikolaiTL@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
b2070f3eee
commit
05eb98f069
@@ -66,6 +66,12 @@ You can now start your Backstage instance as usual, using `yarn dev`.
|
||||
|
||||
## Production Setup
|
||||
|
||||
In your '.dockerignore', add this line:
|
||||
```
|
||||
!packages/backend/src/instrumentation.js
|
||||
```
|
||||
This ensures that Docker build will not ignore the instrumentation file if you are following the recommended `.dockerignore` setup.
|
||||
|
||||
In your `Dockerfile`, copy `instrumentation.js` file into the root of the working directory.
|
||||
|
||||
```Dockerfile
|
||||
|
||||
Reference in New Issue
Block a user