EdgeAIG commited on
Commit
217ad85
·
verified ·
1 Parent(s): 3cd2718

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -12
Dockerfile CHANGED
@@ -1,16 +1,12 @@
1
- # Use standard Node 18 image which already has npm ready
2
- FROM node:18-alpine
3
 
4
- WORKDIR /app
 
5
 
6
- # Directly download the official pre-compiled codebase release
7
- RUN npx degit openclaw/openclaw#main /app
8
-
9
- # Install production dependencies only, bypassing heavy dev compiler pipelines
10
- RUN npm install --omit=dev --no-audit --no-fund
11
-
12
- # Expose Hugging Face's mandatory web routing port
13
  EXPOSE 7860
14
 
15
- # Run the pre-bundled production dashboard gateway
16
- CMD ["npx", "openclaw", "gateway", "--port", "7860"]
 
 
1
+ # Pull the official, pre-compiled OpenClaw production image
2
+ FROM alpine/openclaw:latest
3
 
4
+ # Switch to root to ensure we can map the network layers
5
+ USER root
6
 
7
+ # Expose the precise routing port Hugging Face requires for web apps
 
 
 
 
 
 
8
  EXPOSE 7860
9
 
10
+ # Force OpenClaw to bind internally to port 7860 and bypass onboarding prompts
11
+ ENTRYPOINT ["node", "/app/dist/index.js"]
12
+ CMD ["gateway", "--port", "7860", "--bind", "all", "--no-install-daemon"]