File size: 760 Bytes
ae1b620
 
f072685
 
 
 
 
 
 
ae1b620
f072685
 
 
 
 
 
 
 
 
 
9f7ba8d
ae1b620
f072685
 
ae1b620
f072685
9f7ba8d
f072685
 
 
ae1b620
f072685
ae1b620
 
f072685
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM node:22-slim

ENV DEBIAN_FRONTEND=noninteractive \
    HOME=/root \
    PROXY_PORT=7860 \
    OPENCLAW_PORT=8080 \
    SYNC_INTERVAL=300 \
    PLAYWRIGHT_BROWSERS_PATH=/ms-playwright

RUN apt-get update && apt-get install -y --no-install-recommends \
    ca-certificates \
    curl \
    gettext-base \
    git \
    nginx \
    procps \
    python3 \
    rsync \
    unzip \
    wget \
    && rm -rf /var/lib/apt/lists/*

RUN npm install -g openclaw@latest playwright \
    && playwright install --with-deps chromium

WORKDIR /root/workspace

COPY start.sh /app/start.sh
COPY sync-root-data.sh /app/sync-root-data.sh
COPY nginx.conf.template /app/nginx.conf.template

RUN chmod +x /app/start.sh /app/sync-root-data.sh

EXPOSE 7860

CMD ["/app/start.sh"]