CoolFace
Apppublic

arcticaurora/code-server

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile37 linesDownload Raw Back to root
1# Use a standard, full-featured base image that's great for development tools2FROM node:223 4# --- Install Dependencies (as root), including uv from apt ---5# This is much simpler and installs uv system-wide automatically.6RUN apt-get update && apt-get install -y \7    git \8    curl \9    python3 \10    python3-pip \11    python3.11-venv \12    && rm -rf /var/lib/apt/lists/*13 14# --- Install Gemini CLI (as root) ---15RUN npm install -g @google/gemini-cli16 17RUN npm install -g @anthropic-ai/claude-code18 19RUN npm install -g @musistudio/claude-code-router20 21# --- Install code-server (as root) ---22RUN curl -fsSL https://code-server.dev/install.sh | sh23 24# --- Prepare the user's workspace (as root) ---25RUN mkdir -p /home/node && chown -R node:node /home/node26 27# Set the working directory for the user28WORKDIR /home/node29 30# Now, permanently switch to the non-root user31USER node32 33# Expose the port that code-server will run on34EXPOSE 786035 36# --- Final Command (as the 'node' user) ---37CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "."]