Download Dockerfile from ummmar/cloudcode: direct link, hf CLI and curl.
- Browser
- Download file 791 Bytes
-
https://huggingface.co/spaces/ummmar/cloudcode/resolve/c5f462a99016bdb95eb2ee100d304bb615e6fcaa/Dockerfile
- Command line
-
hf download hf://spaces/ummmar/cloudcode@c5f462a99016bdb95eb2ee100d304bb615e6fcaa/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ummmar/cloudcode/resolve/c5f462a99016bdb95eb2ee100d304bb615e6fcaa/Dockerfile
791 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y git curl nodejs npm supervisor cron \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install OpenCode and explicitly add its install directory to PATH | |
| RUN curl -fsSL https://opencode.ai/install | bash | |
| ENV PATH="/root/.local/bin:/root/.opencode/bin:${PATH}" | |
| # Install OpenChamber | |
| RUN npm install -g @openchamber/web | |
| # Python deps for HF sync | |
| RUN pip install huggingface_hub requests | |
| WORKDIR /workspace | |
| RUN mkdir -p /workspace/projects /workspace/config | |
| COPY entrypoint.sh /entrypoint.sh | |
| COPY sync_config.py /sync_config.py | |
| COPY health_server.py /health_server.py | |
| COPY keep_alive.py /keep_alive.py | |
| COPY repo-helper.sh /usr/local/bin/repo | |
| RUN chmod +x /entrypoint.sh /usr/local/bin/repo | |
| EXPOSE 7860 8080 | |
| ENTRYPOINT ["/entrypoint.sh"] |