-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile.multi-cli
More file actions
43 lines (33 loc) · 1.22 KB
/
Dockerfile.multi-cli
File metadata and controls
43 lines (33 loc) · 1.22 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
FROM codercom/code-server:latest
USER root
# Install Python + Node.js (for Claude Code)
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-venv \
python3-full \
alsa-utils \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# Install Claude Code (as coder so it's accessible at runtime)
USER 1000
RUN curl -fsSL https://claude.ai/install.sh | bash
USER root
ENV PATH="/home/coder/.local/bin:$PATH"
# Create venv owned by coder user (UID 1000)
RUN python3 -m venv /opt/venv \
&& chown -R 1000:1000 /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
# Empty workspace — clone your own repo after boot
RUN mkdir -p /home/coder/workspace && chown 1000:1000 /home/coder/workspace
USER 1000
# Set npm global prefix for non-root user
RUN mkdir -p /home/coder/.npm-global \
&& npm config set prefix '/home/coder/.npm-global'
ENV PATH="/home/coder/.npm-global/bin:${PATH}"
# Install Codex and Gemini CLIs
RUN npm install -g @openai/codex @google/gemini-cli
ENV PATH="/opt/venv/bin:$PATH"
EXPOSE 8080
ENTRYPOINT ["/usr/bin/entrypoint.sh", "--bind-addr", "0.0.0.0:8080", "--auth", "password", "/home/coder/workspace"]