Skip to content

Commit 63f5e21

Browse files
committed
dockerfile update
1 parent 649671b commit 63f5e21

3 files changed

Lines changed: 30 additions & 8 deletions

File tree

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,26 @@ $ patchpal # start
3131
**Alternative: Run with Docker/Podman (no installation required)**
3232

3333
```bash
34-
# Using pre-built image with patchpal installed
34+
# Using pre-built image with patchpal installed (default model)
3535
docker run -it --rm \
3636
-v $(pwd):/workspace \
3737
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
38-
ghcr.io/amaiya/patchpal-sandbox:latest
38+
ghcr.io/amaiya/patchpal-sandbox:latest \
39+
patchpal
3940

4041
# Or with Podman
4142
podman run -it --rm \
4243
-v $(pwd):/workspace \
4344
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
44-
ghcr.io/amaiya/patchpal-sandbox:latest
45+
ghcr.io/amaiya/patchpal-sandbox:latest \
46+
patchpal
47+
48+
# Specify a different model with --model
49+
docker run -it --rm \
50+
-v $(pwd):/workspace \
51+
-e OPENAI_API_KEY=$OPENAI_API_KEY \
52+
ghcr.io/amaiya/patchpal-sandbox:latest \
53+
patchpal --model openai/gpt-5-mini
4554
```
4655

4756
> Platform support: Linux, macOS, and Windows are all supported

docker/Dockerfile-sandbox

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ RUN pip install --no-cache-dir patchpal
1313
# Set working directory
1414
WORKDIR /workspace
1515

16-
# Default command (can be overridden)
17-
CMD ["patchpal", "--help"]
16+
# Set entrypoint to patchpal so arguments can be passed
17+
ENTRYPOINT ["patchpal"]
18+
19+
# Default to help if no arguments provided
20+
CMD ["--help"]

docs/getting-started/index.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,34 @@ pip install patchpal
1313
If you prefer to use containers instead of installing PatchPal locally:
1414

1515
```bash
16-
# Using Docker with pre-built image
16+
# Using Docker with pre-built image (default model)
1717
docker run -it --rm \
1818
-v $(pwd):/workspace \
1919
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
20-
ghcr.io/amaiya/patchpal-sandbox:latest
20+
ghcr.io/amaiya/patchpal-sandbox:latest \
21+
patchpal
2122

2223
# Or with Podman
2324
podman run -it --rm \
2425
-v $(pwd):/workspace \
2526
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
26-
ghcr.io/amaiya/patchpal-sandbox:latest
27+
ghcr.io/amaiya/patchpal-sandbox:latest \
28+
patchpal
29+
30+
# Specify a different model with --model
31+
docker run -it --rm \
32+
-v $(pwd):/workspace \
33+
-e OPENAI_API_KEY=$OPENAI_API_KEY \
34+
ghcr.io/amaiya/patchpal-sandbox:latest \
35+
patchpal --model openai/gpt-5-mini
2736
```
2837

2938
This runs PatchPal in an isolated container with:
3039
- PatchPal pre-installed (no pip install needed)
3140
- Current directory mounted at `/workspace`
3241
- Your API key passed through environment variable
3342
- For other models, pass additional `-e` flags (e.g., `-e OPENAI_API_KEY=$OPENAI_API_KEY`)
43+
- Pass patchpal arguments after `patchpal` command (e.g., `patchpal --model openai/gpt-4o-mini`, `patchpal --autopilot`)
3444

3545
**Supported Operating Systems:** Linux, MacOS, MS Windows.
3646

0 commit comments

Comments
 (0)