Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
|
@@ -13,9 +13,8 @@ RUN apt-get update && apt-get install -y \
|
|
| 13 |
# Install code-server
|
| 14 |
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
| 15 |
|
| 16 |
-
# Python packages —
|
| 17 |
RUN pip3 install --no-cache-dir \
|
| 18 |
-
picoclaw==2026.2.25 \
|
| 19 |
httpx \
|
| 20 |
flask \
|
| 21 |
gunicorn
|
|
@@ -27,6 +26,10 @@ WORKDIR /app
|
|
| 27 |
RUN mkdir -p /app/kb /app/hooks /app/.picoclaw/workspace/sessions \
|
| 28 |
/app/.picoclaw/workspace/cron /app/hook_logs
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
# Copy KB files (served by built-in HTTP server on port 8811)
|
| 31 |
COPY kb/ /app/kb/
|
| 32 |
|
|
@@ -37,17 +40,14 @@ RUN chmod +x /app/hooks/*.py
|
|
| 37 |
# KB HTTP server (Flask on port 8811)
|
| 38 |
COPY kb_server.py /app/kb_server.py
|
| 39 |
|
| 40 |
-
# Picoclaw launcher — finds entry point dynamically
|
| 41 |
-
COPY launch_picoclaw.py /app/launch_picoclaw.py
|
| 42 |
-
|
| 43 |
# Picoclaw config generator
|
| 44 |
COPY gen_config.py /app/gen_config.py
|
| 45 |
|
| 46 |
-
# Startup script — runs code-server + KB server + picoclaw
|
| 47 |
COPY start.sh /app/start.sh
|
| 48 |
RUN chmod +x /app/start.sh
|
| 49 |
|
| 50 |
-
# Expose: 7860 (code-server), 8811 (KB server)
|
| 51 |
EXPOSE 7860 8811
|
| 52 |
|
| 53 |
# Health check — KB server
|
|
|
|
| 13 |
# Install code-server
|
| 14 |
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
| 15 |
|
| 16 |
+
# Python packages — Flask for KB server only (picoclaw is a Go binary)
|
| 17 |
RUN pip3 install --no-cache-dir \
|
|
|
|
| 18 |
httpx \
|
| 19 |
flask \
|
| 20 |
gunicorn
|
|
|
|
| 26 |
RUN mkdir -p /app/kb /app/hooks /app/.picoclaw/workspace/sessions \
|
| 27 |
/app/.picoclaw/workspace/cron /app/hook_logs
|
| 28 |
|
| 29 |
+
# Copy picoclaw Go binary (v0.2.9, statically linked)
|
| 30 |
+
COPY picoclaw /usr/local/bin/picoclaw
|
| 31 |
+
RUN chmod +x /usr/local/bin/picoclaw
|
| 32 |
+
|
| 33 |
# Copy KB files (served by built-in HTTP server on port 8811)
|
| 34 |
COPY kb/ /app/kb/
|
| 35 |
|
|
|
|
| 40 |
# KB HTTP server (Flask on port 8811)
|
| 41 |
COPY kb_server.py /app/kb_server.py
|
| 42 |
|
|
|
|
|
|
|
|
|
|
| 43 |
# Picoclaw config generator
|
| 44 |
COPY gen_config.py /app/gen_config.py
|
| 45 |
|
| 46 |
+
# Startup script — runs code-server + KB server + picoclaw gateway
|
| 47 |
COPY start.sh /app/start.sh
|
| 48 |
RUN chmod +x /app/start.sh
|
| 49 |
|
| 50 |
+
# Expose: 7860 (code-server), 8811 (KB server), 18790 (picoclaw gateway)
|
| 51 |
EXPOSE 7860 8811
|
| 52 |
|
| 53 |
# Health check — KB server
|