@willbooster/wb 23.1.0 → 23.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/index.js +35 -35
- package/docker/bash/install-litestream.sh +13 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -149,6 +149,12 @@ Options:
|
|
|
149
149
|
--help Show help [boolean]
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
+
## Reusing Cloudflare Container images
|
|
153
|
+
|
|
154
|
+
`wb deploy --reuse-container-images` reuses a published image when its committed build context is unchanged. It supports single-image container entries with `image` and either `name` or `class_name`. Docker is required on a cache miss. Commit the Dockerfile inside its Git build context. Builds exclude untracked and generated files and reject uncommitted changes to tracked context files.
|
|
155
|
+
|
|
156
|
+
The reuse key includes the deployment's Worker name, the context's Git tree, the relative Dockerfile path, `image_vars`, and `linux/amd64`. Changes to tracked documentation or files excluded by `.dockerignore` also rebuild the image. To refresh external dependencies, update the committed context. Serialize deployments of the same Worker. Changes to other container settings can still trigger replacement by Cloudflare.
|
|
157
|
+
|
|
152
158
|
## Disk cleanup
|
|
153
159
|
|
|
154
160
|
`wb gc` removes what is safe to lose and prints each removed path to stderr. `--dry-run` only lists them.
|