-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (31 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
38 lines (31 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Use Node.js LTS on Debian Trixie (slim variant for smaller image size)
FROM node:lts-trixie-slim
# Install system dependencies needed for development and VS Code devcontainer
# - git: version control (essential for most development workflows)
# - curl: downloading files and API calls
# - ca-certificates: SSL certificate validation
# - gnupg: GPG key management
RUN apt-get update && apt-get install -y \
git \
curl \
ca-certificates \
gnupg \
python3 \
python3-pip \
python3.13-venv \
&& rm -rf /var/lib/apt/lists/*
# Install Claude Code globally
# Using --no-fund and --no-audit flags to reduce installation noise
RUN npm install -g @anthropic-ai/claude-code --no-fund --no-audit
# Create and activate virtual environment outside workspace
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
# Add activation to shell profiles for interactive use
RUN echo 'source /opt/venv/bin/activate' >> /root/.bashrc
RUN echo 'source /opt/venv/bin/activate' >> /root/.profile
# Set the working directory
WORKDIR /workspace
# Verify Claude Code installation
RUN claude --version
# Keep container running for devcontainer usage
CMD ["sleep", "infinity"]