entrypoint better

This commit is contained in:
2026-09-20 03:00:32 +05:00
parent 3d038b042f
commit 5c3cb56a45
2 changed files with 17 additions and 2 deletions
+2 -1
View File
@@ -11,4 +11,5 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN npm install -g @anthropic-ai/claude-code && npm cache clean --force RUN npm install -g @anthropic-ai/claude-code && npm cache clean --force
CMD claude ENTRYPOINT ["claude"]
CMD []
+15 -1
View File
@@ -3,5 +3,19 @@
## How to use ## How to use
```bash ```bash
alias ccc='docker run --rm -it -v ~/.claude:/root/.claude -v ~/.claude.json:/root/.claude.json -v $PWD:$PWD -w $PWD git.shihaam.dev/dockerfiles/ccc' alias claude='docker run --rm -it -v ~/.claude:/root/.claude -v ~/.claude.json:/root/.claude.json -v $PWD:$PWD -w $PWD git.shihaam.dev/dockerfiles/ccc'
```
Args pass straight through:
```bash
claude # claude
claude --resume # claude --resume
claude -p "hello" # claude -p "hello"
```
For a shell in the container instead, override the entrypoint:
```bash
docker run --rm -it --entrypoint bash -v ~/.claude:/root/.claude -v ~/.claude.json:/root/.claude.json -v $PWD:$PWD -w $PWD git.shihaam.dev/dockerfiles/ccc
``` ```