File size: 897 Bytes
a142bb6
 
b615220
 
 
a142bb6
 
b615220
a142bb6
c5f462a
 
b615220
 
a142bb6
b615220
 
a142bb6
 
 
 
b615220
a142bb6
b615220
 
 
 
a142bb6
 
 
 
b615220
a142bb6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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"]