entrypoint better
This commit is contained in:
+2
-1
@@ -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 []
|
||||||
|
|||||||
@@ -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
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user