Elysiadev11 commited on
Commit
8c44b85
·
verified ·
1 Parent(s): 0dd7294

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -6
Dockerfile CHANGED
@@ -1,13 +1,33 @@
1
- FROM python:3.11-slim
2
 
3
- ENV PYTHONUNBUFFERED=1
 
 
 
 
 
 
 
 
 
 
4
 
5
- RUN pip install --no-cache-dir fastapi "uvicorn[standard]" httpx python-multipart tiktoken
 
6
 
 
 
 
 
 
 
 
7
  WORKDIR /app
 
 
8
 
9
- COPY app.py /app/app.py
 
10
 
11
  EXPOSE 7860
12
-
13
- CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM node:22-slim
2
 
3
+ # 1. Base dependencies + code-server deps + chromium deps + tmux
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 wget procps tmux \
7
+ # Chromium/Playwright dependencies
8
+ libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 \
9
+ libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 \
10
+ libxss1 libxtst6 libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 \
11
+ libcups2 libdrm2 libgbm1 libpango-1.0-0 libcairo2 libasound2 \
12
+ libxshmfence1 libglib2.0-0 fonts-liberation xdg-utils \
13
+ && rm -rf /var/lib/apt/lists/*
14
 
15
+ # 2. Python packages
16
+ RUN pip3 install --no-cache-dir huggingface_hub --break-system-packages
17
 
18
+ # 3. Install OpenClaw
19
+ RUN npm install -g openclaw@latest --unsafe-perm
20
+
21
+ # 4. Install code-server
22
+ RUN curl -fsSL https://code-server.dev/install.sh | sh
23
+
24
+ # 5. Set workdir & copy scripts
25
  WORKDIR /app
26
+ COPY start-openclaw.sh .
27
+ RUN chmod +x start-openclaw.sh
28
 
29
+ # 6. Environment variables
30
+ ENV PORT=7860 HOME=/root
31
 
32
  EXPOSE 7860
33
+ CMD ["./start-openclaw.sh"]