File size: 739 Bytes
0cbc151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# ---------- Basis-Image ----------
FROM python:3.11-slim

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

WORKDIR /app

# ---------- System-Abhängigkeiten ----------
RUN apt-get update && apt-get install -y --no-install-recommends \
        curl ca-certificates nodejs npm \
    && rm -rf /var/lib/apt/lists/*

# ---------- OpenClaw-CLI über NPM ----------
RUN npm install -g openclaw@latest

# ---------- Python-Abhängigkeiten ----------
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# ---------- App-Code ----------
COPY app.py .

# ---------- Netzwerk-Port ----------
EXPOSE 7860      # muss mit app_port in README.md übereinstimmen

# ---------- Start-Befehl ----------
CMD ["python", "app.py"]