Update Dockerfile
Browse files- Dockerfile +8 -12
Dockerfile
CHANGED
|
@@ -1,16 +1,12 @@
|
|
| 1 |
-
#
|
| 2 |
-
FROM
|
| 3 |
|
| 4 |
-
|
|
|
|
| 5 |
|
| 6 |
-
#
|
| 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 |
-
#
|
| 16 |
-
|
|
|
|
|
|
| 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"]
|