Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
|
@@ -1,23 +1,23 @@
|
|
| 1 |
FROM node:22-slim
|
| 2 |
|
| 3 |
-
# 1.
|
| 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 && rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
RUN pip3 install --no-cache-dir huggingface_hub --break-system-packages
|
| 9 |
|
| 10 |
-
# 2.
|
| 11 |
RUN npm install -g openclaw@latest --unsafe-perm
|
| 12 |
|
| 13 |
-
# 3.
|
| 14 |
WORKDIR /app
|
| 15 |
COPY sync.py .
|
| 16 |
COPY start-openclaw.sh .
|
| 17 |
RUN chmod +x start-openclaw.sh
|
| 18 |
|
| 19 |
-
# 4.
|
| 20 |
ENV PORT=7860 HOME=/root
|
| 21 |
|
| 22 |
EXPOSE 7860
|
| 23 |
-
CMD ["./start-openclaw.sh"]
|
|
|
|
| 1 |
FROM node:22-slim
|
| 2 |
|
| 3 |
+
# 1. Base 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 && rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
RUN pip3 install --no-cache-dir huggingface_hub --break-system-packages
|
| 9 |
|
| 10 |
+
# 2. Install OpenClaw
|
| 11 |
RUN npm install -g openclaw@latest --unsafe-perm
|
| 12 |
|
| 13 |
+
# 3. Set workdir & copy scripts
|
| 14 |
WORKDIR /app
|
| 15 |
COPY sync.py .
|
| 16 |
COPY start-openclaw.sh .
|
| 17 |
RUN chmod +x start-openclaw.sh
|
| 18 |
|
| 19 |
+
# 4. Environment variables
|
| 20 |
ENV PORT=7860 HOME=/root
|
| 21 |
|
| 22 |
EXPOSE 7860
|
| 23 |
+
CMD ["./start-openclaw.sh"]
|