TheSolomon commited on
Commit
376a7c2
·
verified ·
1 Parent(s): 1dfbdcc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -9
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM node:20-bullseye
2
 
3
  # Install system dependencies for Playwright/Chromium
4
  RUN apt-get update && apt-get install -y \
@@ -9,17 +9,13 @@ RUN apt-get update && apt-get install -y \
9
 
10
  WORKDIR /app
11
 
12
- # Install OpenClaw globally
13
- RUN npm install -g @openclaw/cli
14
 
15
- # Pre-install Playwright browsers for the "No API" mode
16
  RUN npx playwright install chromium
17
 
18
- # Copy your local config if you have one
19
- # COPY openclaw.json .
20
-
21
- # Expose the port (Hugging Face typically uses 7860)
22
  EXPOSE 7860
23
 
24
- # Start OpenClaw in Gateway mode
25
  CMD ["openclaw", "gateway", "--port", "7860"]
 
1
+ FROM node:22-bullseye
2
 
3
  # Install system dependencies for Playwright/Chromium
4
  RUN apt-get update && apt-get install -y \
 
9
 
10
  WORKDIR /app
11
 
12
+ # Install the correct OpenClaw package globally
13
+ RUN npm install -g openclaw@latest
14
 
15
+ # Install Playwright browsers for "No API" mode
16
  RUN npx playwright install chromium
17
 
 
 
 
 
18
  EXPOSE 7860
19
 
20
+ # Start the gateway
21
  CMD ["openclaw", "gateway", "--port", "7860"]