Add Docker support and update requirements

This commit is contained in:
InviteMe Developer
2026-08-31 13:08:53 +03:00
parent 76a42f14d0
commit 17226dc925
5 changed files with 76 additions and 2 deletions
+5 -2
View File
@@ -1,3 +1,5 @@
import os
from waitress import serve
from app import create_app
@@ -5,5 +7,6 @@ app = create_app()
if __name__ == "__main__":
# host=0.0.0.0 — слушаем все интерфейсы
# port=8888 — порт, на который Nginx проксирует запросы
serve(app, host="0.0.0.0", port=8888, threads=4)
# port — из переменной окружения или 8888 по умолчанию
port = int(os.environ.get("PORT", "8888"))
serve(app, host="0.0.0.0", port=port, threads=4)