Skip to content

Instantly share code, notes, and snippets.

@fabiant7t
Created August 27, 2025 20:23
Show Gist options
  • Save fabiant7t/06757e67187775931b0ec6c402db3d72 to your computer and use it in GitHub Desktop.
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.
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
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