<h1 align="center">
<a href="https://prompts.chat">
This repository offers a docker container with a claude code installation and a minimalistic development environment. The idea is to give claude code an isolated environment to work in, which does not risk compromising other information on the machine.
Sign in to like and favorite skills
This repository offers a docker container with a claude code installation and a minimalistic development environment. The idea is to give claude code an isolated environment to work in, which does not risk compromising other information on the machine. Therefore, only one chosen path is mounted into the container. Additionally, the repository offers an installation shell script to build the docker image and set up an alias 'claude_code_shell' to start a docker container and mount the current path. This repository mainly serves as an example and therefore integrates a java-maven setup for now. If another development setup is needed, it is recommended to exchange the docker base image given in the Dockerfile.
This will build the docker image and set up an alias (for zsh & bash). The image will be reused on each run.
Clone the git-repository and run the installation
git clone [email protected]:thanhart/claude-code-environment.git cd claude-code-environment ./scripts/install.sh
In a directory in which you want to work with claude code, trigger
claude_code_shell
Uninstall removes:
./scripts/uninstall.sh
docker build -t claude_code .
Run this command from the directory you want to mount into the container:
docker run -it --rm \ -v "$(pwd)":/workspace \ -v claude-credentials:/claude-credentials \ -e HOST_UID=$(id -u) \ -e HOST_GID=$(id -g) \ -e "CLAUDE_CONFIG_DIR=/claude-credentials" \ claude_code