- Flask-App mit SQLite, Projekt-Einreichung und Bewerbungen - Suche und Filter nach Kategorie - Modernes UI mit Bootstrap 5 und Custom CSS - 6 Demo-Projekte via seed_demo_data.py - Docker und docker-compose Support Made-with: Cursor
22 lines
495 B
Docker
22 lines
495 B
Docker
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
|