-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
26 lines (21 loc) · 1.12 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
FROM lscr.io/linuxserver/code-server@sha256:629232bdd99640dd3d514a40c740a9d42dcb808a844005821b2f4be6e6a8b66e
# Gemini: https://open-vsx.org/extension/Google/geminicodeassist
# Claude: https://open-vsx.org/extension/Anthropic/claude-code
RUN apt-get update \
&& apt-get install -y --no-install-recommends jq \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /config/extensions \
&& chown abc:abc /config /config/extensions
USER abc
ENV HOME=/config
RUN curl -fsSL 'https://open-vsx.org/api/Google/geminicodeassist/latest' \
| jq -r '.files.download' \
| xargs curl -fL --compressed -o /tmp/geminicodeassist.vsix \
&& curl -fsSL 'https://open-vsx.org/api/Anthropic/claude-code/latest' \
| jq -r '.files.download' \
| xargs curl -fL --compressed -o /tmp/claudecode.vsix \
&& /app/code-server/bin/code-server --extensions-dir /config/extensions --install-extension /tmp/geminicodeassist.vsix \
&& /app/code-server/bin/code-server --extensions-dir /config/extensions --install-extension /tmp/claudecode.vsix \
&& rm /tmp/geminicodeassist.vsix /tmp/claudecode.vsix
USER root
WORKDIR /config