FROM python:3.12-slim WORKDIR /app # Abhängigkeiten installieren COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt gunicorn # Anwendung kopieren COPY app.py models.py seed_demo_data.py ./ COPY templates/ templates/ COPY static/ static/ # Instance-Ordner für SQLite (wird per Volume gemountet) ENV FLASK_APP=app.py EXPOSE 5000 # Seed ausführen, dann Gunicorn starten CMD python seed_demo_data.py 2>/dev/null || true && \ gunicorn --bind 0.0.0.0:5000 app:app