Update Dockerfile
Browse files- Dockerfile +9 -5
Dockerfile
CHANGED
|
@@ -1,24 +1,28 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
-
|
| 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
|
| 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"]
|
|
|
|
| 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"]
|