-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
35 lines (28 loc) · 1.14 KB
/
Copy pathContainerfile
File metadata and controls
35 lines (28 loc) · 1.14 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
FROM node:24-bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
curl \
ca-certificates \
bash \
less \
jq \
openssh-client \
&& rm -rf /var/lib/apt/lists/*
ENV PATH="/root/.local/bin:$PATH"
ENV CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
RUN uv python install 3.12.6 \
&& ln -sf /root/.local/bin/python3.12 /root/.local/bin/python \
&& ln -sf /root/.local/bin/python3.12 /root/.local/bin/python3
ARG CLAUDE_VERSION=latest
RUN npm install -g @anthropic-ai/claude-code@${CLAUDE_VERSION}
WORKDIR /workspace
# Clipboard bridge client — drop-in shims for xclip / xsel / wl-paste / wl-copy.
# They connect to the host clipboard server over TCP (via $CLIPBOARD_HOST:$CLIPBOARD_PORT)
# so that Claude Code's image-paste feature works when running inside a container.
COPY clipboard-client.js /usr/local/lib/clipboard-client.js
RUN chmod +x /usr/local/lib/clipboard-client.js \
&& for tool in xclip xsel wl-paste wl-copy; do \
ln -sf /usr/local/lib/clipboard-client.js /usr/local/bin/$tool; \
done
ENTRYPOINT ["claude"]