Claude Code Environment
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.
Loading actions...
Skill content
Main instructions and any bundled files for this skill.
Claude Code Environment
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.
Installation
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
Usage
In a directory in which you want to work with claude code, trigger
claude_code_shell
Uninstall
Uninstall removes:
- alias to launch docker container
- built docker image
- docker volume that persists authorization
./scripts/uninstall.sh
Without using alias
Build the Docker Image
docker build -t claude_code .
Run the Container
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
Related Skills
Frontend Typescript Linting.mdc
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend li...
2. Apply Deepthink Protocol (reason about dependencies
risks