Dmitry Beresnev commited on
Commit
190dfb8
·
1 Parent(s): ad9d2ff

fix dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -6
Dockerfile CHANGED
@@ -1,17 +1,19 @@
1
- FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install runtime system packages and Node.js for OpenClaw.
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/setup_20.x | bash - \
12
  && apt-get install -y --no-install-recommends nodejs \
13
- && (npm install -g openclaw || npm install -g clawdbot) \
14
- && (openclaw --help >/dev/null 2>&1 || clawdbot --help >/dev/null 2>&1) \
 
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