Add docker support

This commit is contained in:
Mikhail Yevchenko
2026-04-01 20:41:52 +00:00
parent 27e97adbc8
commit a468a7a268
13 changed files with 417 additions and 609 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM python:3.14.3-alpine
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install ffmpeg for HLS handling
RUN apk add --no-cache ffmpeg nodejs
# Copy application
COPY . .
EXPOSE 5000
# Use production WSGI server
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:5000", "--timeout", "60", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "info", "app:app"]