Op / Dockerfile
Marvin Wiesner
Create Dockerfile
0cbc151 verified
raw
history blame contribute delete
739 Bytes
# ---------- 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"]