Created
August 27, 2025 20:23
-
-
Save fabiant7t/06757e67187775931b0ec6c402db3d72 to your computer and use it in GitHub Desktop.
That’s how I run Claude in an isolated container while mounting a host volume from my development machine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM golang:1.24 | |
| RUN apt update \ | |
| && apt install -y \ | |
| curl \ | |
| git \ | |
| gnupg2 \ | |
| iproute2 \ | |
| lsof \ | |
| neovim \ | |
| net-tools \ | |
| npm \ | |
| python3 \ | |
| tmux \ | |
| wget \ | |
| zsh | |
| RUN npm install -g @anthropic-ai/claude-code | |
| WORKDIR /vol |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NAME:=claudecomputing | |
| TAG:=dev | |
| build: | |
| @docker buildx build -t ${NAME}:${TAG} . | |
| run: build | |
| @mkdir -p vol | |
| @docker run \ | |
| --name ${NAME} \ | |
| --detach \ | |
| --rm \ | |
| --volume $(shell pwd)/vol:/vol \ | |
| ${NAME}:${TAG} \ | |
| sleep infinity | |
| shell: | |
| @docker exec -it ${NAME} zsh | |
| stop: | |
| @docker stop ${NAME} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment