feat: package and verify lab1 container lifecycle

This commit is contained in:
Самохвалов Андрей Ремович
2026-10-01 21:59:13 +03:00
parent 55ec45cc3d
commit c5e93067ec
8 changed files with 215 additions and 37 deletions
+14
View File
@@ -0,0 +1,14 @@
"""Run the single in-memory ASGI worker as the container's main process."""
import os
import uvicorn
if __name__ == "__main__":
uvicorn.run(
"src.main:app",
host=os.environ.get("APP_HOST", "0.0.0.0"),
port=int(os.environ.get("APP_PORT", "8080")),
workers=1,
)