Create Dockerfile
Browse files- Dockerfile +28 -0
Dockerfile
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:22-slim
|
| 2 |
+
|
| 3 |
+
# 1. Install system dependencies
|
| 4 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 5 |
+
git openssh-client build-essential python3 python3-pip \
|
| 6 |
+
g++ make ca-certificates curl && rm -rf /var/lib/apt/lists/*
|
| 7 |
+
|
| 8 |
+
# 2. Install Python dependencies (Hugging Face Hub)
|
| 9 |
+
RUN pip3 install --no-cache-dir huggingface_hub --break-system-packages
|
| 10 |
+
|
| 11 |
+
# 3. Install OpenClaw globally (latest stable version)
|
| 12 |
+
RUN npm install -g openclaw@latest --unsafe-perm
|
| 13 |
+
|
| 14 |
+
# 4. Set working directory
|
| 15 |
+
WORKDIR /app
|
| 16 |
+
|
| 17 |
+
# 5. Copy script files
|
| 18 |
+
COPY sync.py .
|
| 19 |
+
COPY start-openclaw.sh .
|
| 20 |
+
RUN chmod +x start-openclaw.sh
|
| 21 |
+
|
| 22 |
+
# 6. Set environment variables
|
| 23 |
+
ENV PORT=7860
|
| 24 |
+
ENV HOME=/root
|
| 25 |
+
EXPOSE 7860
|
| 26 |
+
|
| 27 |
+
# 7. Startup command
|
| 28 |
+
CMD ["./start-openclaw.sh"]
|