This commit is contained in:
2025-12-03 19:10:51 +09:00
parent a535e1c6b5
commit e94a79b9e7
2 changed files with 5 additions and 2 deletions

View File

@@ -27,5 +27,6 @@ COPY . /app
# Открытый порт
EXPOSE 8000
# По умолчанию запускаем uvicorn
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"]
# По умолчанию запускаем uvicorn — принимаем HOST и PORT из переменных окружения
# Если переменные не заданы, используются значения по умолчанию
CMD ["sh", "-c", "uvicorn server:app --host ${HOST:-0.0.0.0} --port ${PORT:-8000}"]