File size: 821 Bytes
b9ba589
 
b19ae41
 
b9ba589
c31a625
b9ba589
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM ghcr.io/openclaw/openclaw:latest

USER root

RUN apt-get update && apt-get install -y \
    python3 python3-pip ffmpeg curl git nginx zstd \
    && rm -rf /var/lib/apt/lists/*

RUN curl -fsSL https://ollama.com/install.sh | sh

RUN pip3 install --break-system-packages \
    requests kaggle huggingface_hub \
    google-api-python-client google-auth \
    google-auth-oauthlib google-auth-httplib2 \
    pillow numpy

RUN printf 'server {\n    listen 7860;\n    location / {\n        proxy_pass http://127.0.0.1:8080;\n        proxy_http_version 1.1;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection "upgrade";\n        proxy_set_header Host $host;\n    }\n}\n' > /etc/nginx/sites-available/default

WORKDIR /app
COPY . .
RUN chmod +x start.sh

EXPOSE 7860
CMD ["/app/start.sh"]