claudecode-linter 2.1.148-patch.3 → 2.1.148-patch.4
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 +10 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -230,28 +230,28 @@ For **untrusted** plugins — especially with `--fix`, which writes files back t
|
|
|
230
230
|
|
|
231
231
|
### The Docker image
|
|
232
232
|
|
|
233
|
-
Two multi-arch (`linux/amd64`, `linux/arm64`) images are published to the GitHub Container Registry
|
|
233
|
+
Two multi-arch (`linux/amd64`, `linux/arm64`) images are published to the GitHub Container Registry — two separate packages, each with its own `:latest` rolling tag and `:<version>` tag:
|
|
234
234
|
|
|
235
235
|
| Image | Built from | Notes |
|
|
236
236
|
|-------|-----------|-------|
|
|
237
|
-
| `ghcr.io/retif/claudecode-linter`
|
|
238
|
-
| `ghcr.io/retif/claudecode-linter
|
|
237
|
+
| `ghcr.io/retif/node-claudecode-linter` | `Dockerfile` — `node:24-alpine` | default |
|
|
238
|
+
| `ghcr.io/retif/bun-claudecode-linter` | `Dockerfile.compile` — `bun build --compile` single executable | smaller (~44 MB compressed) |
|
|
239
239
|
|
|
240
240
|
**Pull a published image:**
|
|
241
241
|
|
|
242
242
|
```bash
|
|
243
|
-
docker pull ghcr.io/retif/claudecode-linter
|
|
244
|
-
docker pull ghcr.io/retif/claudecode-linter
|
|
243
|
+
docker pull ghcr.io/retif/node-claudecode-linter # default (node:24-alpine)
|
|
244
|
+
docker pull ghcr.io/retif/bun-claudecode-linter # smaller (bun --compile)
|
|
245
245
|
```
|
|
246
246
|
|
|
247
247
|
**Or build it locally** from a checkout of this repo:
|
|
248
248
|
|
|
249
249
|
```bash
|
|
250
|
-
docker build -t claudecode-linter .
|
|
251
|
-
docker build -f Dockerfile.compile -t claudecode-linter
|
|
250
|
+
docker build -t node-claudecode-linter . # default (Dockerfile)
|
|
251
|
+
docker build -f Dockerfile.compile -t bun-claudecode-linter . # smaller variant
|
|
252
252
|
```
|
|
253
253
|
|
|
254
|
-
Both images behave identically. The `docker run` recipes below use `ghcr.io/retif/claudecode-linter`; substitute
|
|
254
|
+
Both images behave identically. The `docker run` recipes below use `ghcr.io/retif/node-claudecode-linter`; substitute `ghcr.io/retif/bun-claudecode-linter` or a locally-built tag as you prefer.
|
|
255
255
|
|
|
256
256
|
### Sandboxed invocation
|
|
257
257
|
|
|
@@ -260,7 +260,7 @@ Both images behave identically. The `docker run` recipes below use `ghcr.io/reti
|
|
|
260
260
|
```bash
|
|
261
261
|
docker run --rm --network none --read-only --tmpfs /tmp \
|
|
262
262
|
--user "$(id -u):$(id -g)" --cap-drop ALL --security-opt no-new-privileges \
|
|
263
|
-
-v "$PWD":/work:ro -w /work ghcr.io/retif/claudecode-linter /work
|
|
263
|
+
-v "$PWD":/work:ro -w /work ghcr.io/retif/node-claudecode-linter /work
|
|
264
264
|
```
|
|
265
265
|
|
|
266
266
|
**Docker — `--fix`:** the mount must be read-write so fixes can be written back. Otherwise identical, plus the `--fix` flag:
|
|
@@ -268,7 +268,7 @@ docker run --rm --network none --read-only --tmpfs /tmp \
|
|
|
268
268
|
```bash
|
|
269
269
|
docker run --rm --network none --read-only --tmpfs /tmp \
|
|
270
270
|
--user "$(id -u):$(id -g)" --cap-drop ALL --security-opt no-new-privileges \
|
|
271
|
-
-v "$PWD":/work -w /work ghcr.io/retif/claudecode-linter --fix /work
|
|
271
|
+
-v "$PWD":/work -w /work ghcr.io/retif/node-claudecode-linter --fix /work
|
|
272
272
|
```
|
|
273
273
|
|
|
274
274
|
All four recipes here are verified. On Linux without Docker, [bubblewrap](https://github.com/containers/bubblewrap) (`bwrap`) gives the equivalent boundary: `--unshare-all` cuts network (confirmed: `ECONNREFUSED` inside the sandbox), and nothing is writable except — for `--fix` — the target directory (confirmed: a write outside it is refused).
|