ummmar commited on
Commit
88a02ec
·
verified ·
1 Parent(s): 237dcac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -1,28 +1,26 @@
1
  FROM python:3.11-slim
2
 
3
- RUN apt-get update && apt-get install -y git curl nodejs npm supervisor cron \
4
  && rm -rf /var/lib/apt/lists/*
5
 
6
- # Install OpenCode and explicitly add its install directory 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 for HF sync
14
- RUN pip install huggingface_hub requests
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 health_server.py /health_server.py
22
- COPY keep_alive.py /keep_alive.py
23
  COPY repo-helper.sh /usr/local/bin/repo
24
 
25
  RUN chmod +x /entrypoint.sh /usr/local/bin/repo
26
 
27
- EXPOSE 7860 8080
28
  ENTRYPOINT ["/entrypoint.sh"]
 
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"]