Merge pull request #3501 from backstage/rugvip/smol

backend: remove yarn cache from built docker image
This commit is contained in:
Patrik Oldsberg
2020-12-01 11:53:31 +01:00
committed by GitHub
4 changed files with 16 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
---
'@backstage/create-app': patch
---
Optimized the `yarn install` step in the backend `Dockerfile`.
To apply these changes to an existing app, make the following changes to `packages/backend/Dockerfile`:
Replace the `RUN yarn install ...` line with the following:
```bash
RUN yarn install --frozen-lockfile --production --network-timeout 300000 && rm -rf "$(yarn cache dir)"
```