unfinity commited on
Commit
c4fe492
·
1 Parent(s): c01b5a3

trying subprocess

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. start.py +3 -0
Dockerfile CHANGED
@@ -20,4 +20,4 @@ RUN wget https://github.com/ultralytics/assets/releases/download/v8.2.0/yolov8l-
20
 
21
  COPY . /app
22
 
23
- CMD ["uvicorn", "test:app", "--host", "0.0.0.0", "--port", "7860"]
 
20
 
21
  COPY . /app
22
 
23
+ CMD ["python", "start.py"]
start.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import subprocess
2
+
3
+ subprocess.run("uvicorn modules.app:app --host 0.0.0.0 --port 7860", shell=True)