FROM python:3.9-slim | |
WORKDIR /code | |
# Installiere Abhängigkeiten | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Kopiere den App-Code | |
COPY app.py . | |
# Port freigeben | |
EXPOSE 7860 | |
# Umgebungsvariablen setzen | |
ENV HOST=0.0.0.0 | |
ENV PORT=7860 | |
# Start-Kommando | |
CMD ["python", "app.py"] |