-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile.workspace
More file actions
56 lines (48 loc) · 1.76 KB
/
Dockerfile.workspace
File metadata and controls
56 lines (48 loc) · 1.76 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
FROM ubuntu:24.04
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
python3 \
python3-pip \
python3-venv \
nodejs \
npm \
ruby \
ruby-dev \
wget \
jq \
vim \
openssh-client \
ca-certificates \
sudo \
unzip \
zip \
htop \
net-tools \
iputils-ping \
dnsutils \
&& curl -fsSL https://rclone.org/install.sh | bash \
&& (curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt-get update -qq && apt-get install -y gh) \
&& rm -rf /var/lib/apt/lists/*
# Agent user with full sudo access (no password) — safe because this is an isolated container
RUN useradd -m -s /bin/bash agent && \
echo "agent ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
# Configure persistent paths — /home/agent is a volume so pip/npm/gem installs survive rebuilds
ENV PATH="/home/agent/.local/bin:/home/agent/node_modules/.bin:${PATH}"
ENV PIP_USER=1
ENV GEM_HOME="/home/agent/.gems"
ENV NPM_CONFIG_PREFIX="/home/agent/.npm-global"
# Install Claude Code CLI
RUN npm install -g @anthropic-ai/claude-code
# Install Google Workspace CLI (gws)
RUN npm install -g @googleworkspace/cli || true
# Create tmpfs mount point for temp GWS credentials
RUN mkdir -p /tmp/gws-creds && chmod 700 /tmp/gws-creds
RUN mkdir -p /workspace && chmod 777 /workspace
USER agent
WORKDIR /workspace
CMD ["sleep", "infinity"]