| FROM ubuntu:22.04 |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| curl git sudo python3 python3-pip nano \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ |
| && apt-get install -y nodejs |
|
|
| |
| RUN npm install -g @anthropic-ai/claude-code |
|
|
| |
| RUN curl -fsSL https://code-server.dev/install.sh | sh |
|
|
| |
| RUN useradd -m -u 1000 coder \ |
| && mkdir -p /home/coder/workspace \ |
| && chown -R coder:coder /home/coder |
|
|
| RUN echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers |
|
|
| USER coder |
| WORKDIR /home/coder/workspace |
|
|
| |
| RUN echo '{"hasCompletedOnboarding": true}' > /home/coder/.claude.json |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "password", "/home/coder/workspace"] |
|
|