cloudcode / Dockerfile
ummmar's picture
Update Dockerfile
c5f462a verified
Raw History Blame
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"]