| FROM codercom/code-server:latest |
|
|
| USER root |
|
|
| RUN apt-get update && apt-get install -y \ |
| git curl wget ca-certificates unzip jq \ |
| zsh openssh-client rsync \ |
| nginx apache2-utils \ |
| build-essential \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| python3 python3-venv python3-pip \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN python3 -m venv /opt/venv |
|
|
| |
| ENV PATH="/opt/venv/bin:$PATH" |
| ENV VIRTUAL_ENV=/opt/venv |
|
|
| |
| RUN pip install --no-cache-dir --upgrade pip \ |
| && pip install --no-cache-dir "huggingface_hub==0.26.*" \ |
| && python -c "import huggingface_hub; print('huggingface_hub=', huggingface_hub.__version__)" |
| |
| |
| RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl gnupg \ |
| && curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ |
| && apt-get install -y --no-install-recommends nodejs \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| ENV NPM_CONFIG_CACHE=/home/coder/.npm \ |
| NPM_CONFIG_PREFIX=/home/coder/.npm-global \ |
| PATH=/home/coder/.npm-global/bin:$PATH |
|
|
| |
| RUN mkdir -p /home/coder/.npm /home/coder/.npm-global \ |
| && chown -R coder:coder /home/coder/.npm /home/coder/.npm-global |
|
|
| |
| USER coder |
| RUN npm i -g @cometix/codex @anthropic-ai/claude-code |
|
|
| |
| USER root |
| |
| COPY entrypoint.sh /entrypoint.sh |
| COPY sync_home.py /sync_home.py |
| COPY nginx.conf.template /etc/nginx/templates/nginx.conf.template |
| RUN chmod +x /entrypoint.sh |
|
|
| EXPOSE 7860 |
| ENTRYPOINT ["/entrypoint.sh"] |