new file: .gitignore

new file:   Dockerfile
	new file:   app.py
	new file:   requirements.txt
	new file:   start.bat
	new file:   templates/login.html
	new file:   templates/playlists.html
	new file:   templates/quiz.html
This commit is contained in:
SimolZimol
2025-05-15 21:58:50 +02:00
parent 8954b97b70
commit 447402ab75
8 changed files with 365 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
# --- Stage 1: Dependencies installieren ---
FROM python:3.10-slim AS base
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# --- Stage 2: Code kopieren & starten ---
FROM base AS run
WORKDIR /app
COPY . /app
# Port, den Coolify erwartet
EXPOSE 5000
# Starten mit Gunicorn für Production
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]