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:
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
||||
|
||||
Reference in New Issue
Block a user