FROM python:3.11-slim # Install system dependencies RUN apt-get update && apt-get install -y \ git curl nodejs npm supervisor cron \ && rm -rf /var/lib/apt/lists/* # Install OpenCode CLI RUN curl -fsSL https://opencode.ai/install | bash ENV PATH="/root/.local/bin:/root/.opencode/bin:${PATH}" # Install OpenChamber UI and Wrangler (for CF Workers) RUN npm install -g @openchamber/web wrangler # Install Python dependencies RUN pip install huggingface_hub requests WORKDIR /workspace RUN mkdir -p /workspace/projects /workspace/config # Copy scripts COPY entrypoint.sh /entrypoint.sh COPY restore_workspace.py /restore_workspace.py COPY sync_workspace.py /sync_workspace.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"]