Elysiadev11 commited on
Commit
9f7ba8d
·
verified ·
1 Parent(s): 2e58188

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -6
Dockerfile CHANGED
@@ -1,23 +1,37 @@
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"]
 
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 sync.py .
27
  COPY start-openclaw.sh .
28
  RUN chmod +x start-openclaw.sh
29
 
30
+ # 6. Create workspace directory for VS Code
31
+ RUN mkdir -p /home/coder/workspace
32
+
33
+ # 7. Environment variables
34
  ENV PORT=7860 HOME=/root
35
 
36
  EXPOSE 7860
37
+ CMD ["./start-openclaw.sh"]