Fix deploy: main.py entrypoint and proxy Dockerfile for VPN build
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
"""Entry point for container: python main.py"""
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
def main() -> None:
|
||||
subprocess.run(
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"gunicorn",
|
||||
"-b",
|
||||
"0.0.0.0:8765",
|
||||
"-w",
|
||||
"2",
|
||||
"--timeout",
|
||||
"180",
|
||||
"run:app",
|
||||
],
|
||||
check=True,
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user