-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.agent
More file actions
59 lines (45 loc) · 1.21 KB
/
Dockerfile.agent
File metadata and controls
59 lines (45 loc) · 1.21 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM ubuntu:22.04
ENV TZ="Europe/Amsterdam"
RUN apt update
RUN apt install -y \
less \
git \
procps \
sudo \
fzf \
zsh \
unzip \
gh \
curl \
wget \
vim \
jq \
golang-go \
ca-certificates \
gnupg \
lsb-release \
python3.10-venv
# Install Node.js 20 (includes npm)
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs && \
npm --version
# Set environment variables
ENV NODE_OPTIONS="--max-old-space-size=4096"
ENV CLAUDE_CONFIG_DIR="/root/.claude"
# Create workspace and config directories
RUN mkdir -p /workspace /root/.claude /hooks /var/log && \
chmod 777 /var/log
# Copy hook scripts
COPY hooks/ /hooks/
# Setup certificate handling for proxy
RUN mkdir -p /usr/local/share/ca-certificates
# Copy pre-generated proxy certificate
COPY certs/proxy.crt /usr/local/share/ca-certificates/proxy.crt
# Update CA certificates to include proxy certificate
RUN update-ca-certificates
# Install Claude Code CLI
RUN npm install -g @anthropic-ai/claude-code
WORKDIR /workspace
# Let Claude Code know it's a sandbox and running as root is OK
ENV IS_SANDBOX=1
# Default to bash shell for interactive use
CMD ["/bin/bash"]