ummmar commited on
Commit
b615220
·
verified ·
1 Parent(s): c684c22

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -8
Dockerfile CHANGED
@@ -1,26 +1,32 @@
1
  FROM python:3.11-slim
2
 
3
- RUN apt-get update && apt-get install -y git curl nodejs npm \
 
 
4
  && rm -rf /var/lib/apt/lists/*
5
 
6
- # Install OpenCode + add to PATH
7
  RUN curl -fsSL https://opencode.ai/install | bash
8
  ENV PATH="/root/.local/bin:/root/.opencode/bin:${PATH}"
9
 
10
- # Install OpenChamber
11
- RUN npm install -g @openchamber/web
12
 
13
- # Python deps
14
- RUN pip install huggingface_hub
15
 
16
  WORKDIR /workspace
17
  RUN mkdir -p /workspace/projects /workspace/config
18
 
 
19
  COPY entrypoint.sh /entrypoint.sh
20
- COPY sync_config.py /sync_config.py
 
 
 
21
  COPY repo-helper.sh /usr/local/bin/repo
22
 
23
  RUN chmod +x /entrypoint.sh /usr/local/bin/repo
24
 
25
- EXPOSE 7860
26
  ENTRYPOINT ["/entrypoint.sh"]
 
1
  FROM python:3.11-slim
2
 
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ git curl nodejs npm supervisor cron \
6
  && rm -rf /var/lib/apt/lists/*
7
 
8
+ # Install OpenCode CLI
9
  RUN curl -fsSL https://opencode.ai/install | bash
10
  ENV PATH="/root/.local/bin:/root/.opencode/bin:${PATH}"
11
 
12
+ # Install OpenChamber UI and Wrangler (for CF Workers)
13
+ RUN npm install -g @openchamber/web wrangler
14
 
15
+ # Install Python dependencies
16
+ RUN pip install huggingface_hub requests
17
 
18
  WORKDIR /workspace
19
  RUN mkdir -p /workspace/projects /workspace/config
20
 
21
+ # Copy scripts
22
  COPY entrypoint.sh /entrypoint.sh
23
+ COPY restore_workspace.py /restore_workspace.py
24
+ COPY sync_workspace.py /sync_workspace.py
25
+ COPY health_server.py /health_server.py
26
+ COPY keep_alive.py /keep_alive.py
27
  COPY repo-helper.sh /usr/local/bin/repo
28
 
29
  RUN chmod +x /entrypoint.sh /usr/local/bin/repo
30
 
31
+ EXPOSE 7860 8080
32
  ENTRYPOINT ["/entrypoint.sh"]