ummmar commited on
Commit
a142bb6
·
verified ·
1 Parent(s): 0419d3f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # Install system deps, Git, and Node
4
+ RUN apt-get update && apt-get install -y git curl nodejs npm supervisor \
5
+ && rm -rf /var/lib/apt/lists/*
6
+
7
+ # Install OpenCode & OpenChamber
8
+ RUN curl -fsSL https://opencode.ai/install | bash
9
+ RUN npm install -g @openchamber/web
10
+
11
+ # Python deps for HF sync
12
+ RUN pip install huggingface_hub
13
+
14
+ WORKDIR /workspace
15
+ RUN mkdir -p /workspace/projects /workspace/config
16
+
17
+ COPY entrypoint.sh /entrypoint.sh
18
+ COPY sync_config.py /sync_config.py
19
+ COPY repo-helper.sh /usr/local/bin/repo
20
+
21
+ RUN chmod +x /entrypoint.sh /usr/local/bin/repo
22
+
23
+ EXPOSE 7860
24
+ ENTRYPOINT ["/entrypoint.sh"]