Enhance YouTube video download functionality with improved error handling and format options. Update Docker configuration to use environment variable for port and simplify network settings.
This commit is contained in:
parent
2d248b9ce0
commit
88d753b84a
4 changed files with 109 additions and 66 deletions
|
|
@ -21,5 +21,6 @@ RUN mkdir -p downloads
|
|||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# Gunicorn: 1 worker (последовательная обработка), без таймаута
|
||||
CMD ["gunicorn", "--workers=1", "--timeout=0", "--bind=0.0.0.0:5000", "app:app"]
|
||||
# Порт берется из переменной окружения PORT (по умолчанию 5000)
|
||||
CMD sh -c "gunicorn --workers=1 --timeout=0 --bind=0.0.0.0:${PORT:-5000} app:app"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue