Paijo commited on
Commit
b0e454f
·
verified ·
1 Parent(s): 11e7d3e

Add Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:22-slim
2
+
3
+ # Create app directory
4
+ WORKDIR /home/node/openclaw
5
+
6
+ # Install OpenClaw globally
7
+ RUN npm install -g openclaw@latest
8
+
9
+ # Set environment variable
10
+ ENV OPENCLAW_NODE_MODE=true
11
+
12
+ # Expose default Gateway port
13
+ EXPOSE 18789
14
+
15
+ # Set working directory for OpenClaw
16
+ WORKDIR /home/node/openclaw
17
+
18
+ # Command to start the Gateway
19
+ CMD ["openclaw", "gateway", "--port", "18789"]