Spaces:
Build error
Build error
Dmitry Beresnev commited on
Commit ·
190dfb8
1
Parent(s): ad9d2ff
fix dockerfile
Browse files- Dockerfile +12 -6
Dockerfile
CHANGED
|
@@ -1,17 +1,19 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
# Install runtime system packages and
|
| 6 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
| 7 |
curl \
|
| 8 |
ca-certificates \
|
| 9 |
ffmpeg \
|
| 10 |
git \
|
| 11 |
-
&& curl -fsSL https://deb.nodesource.com/
|
| 12 |
&& apt-get install -y --no-install-recommends nodejs \
|
| 13 |
-
&&
|
| 14 |
-
&&
|
|
|
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
# Python dependencies via uv + pyproject.toml.
|
|
@@ -25,8 +27,12 @@ ENV PORT=7860
|
|
| 25 |
ENV OPENCLAW_PORT=8787
|
| 26 |
ENV OPENCLAW_BIN=openclaw
|
| 27 |
ENV VAULT_PATH=/app/vault
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
-
RUN mkdir -p /app/vault
|
| 30 |
|
| 31 |
EXPOSE 7860
|
| 32 |
|
|
|
|
| 1 |
+
FROM python:3.13-slim
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Install runtime system packages and OpenClaw.
|
| 6 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
+
bash \
|
| 8 |
curl \
|
| 9 |
ca-certificates \
|
| 10 |
ffmpeg \
|
| 11 |
git \
|
| 12 |
+
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
| 13 |
&& apt-get install -y --no-install-recommends nodejs \
|
| 14 |
+
&& curl -fsSL https://openclaw.ai/install.sh | bash \
|
| 15 |
+
&& openclaw --help >/dev/null 2>&1 \
|
| 16 |
+
&& node --version \
|
| 17 |
&& rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
# Python dependencies via uv + pyproject.toml.
|
|
|
|
| 27 |
ENV OPENCLAW_PORT=8787
|
| 28 |
ENV OPENCLAW_BIN=openclaw
|
| 29 |
ENV VAULT_PATH=/app/vault
|
| 30 |
+
ENV PATH=/root/.local/bin:/root/.openclaw/bin:${PATH}
|
| 31 |
+
ENV OPENCLAW_HOME=/app/.openclaw
|
| 32 |
+
ENV OPENCLAW_STATE_DIR=/app/.openclaw/state
|
| 33 |
+
ENV OPENCLAW_CONFIG_PATH=/app/openclaw.json
|
| 34 |
|
| 35 |
+
RUN mkdir -p /app/vault /app/.openclaw/state
|
| 36 |
|
| 37 |
EXPOSE 7860
|
| 38 |
|