asv7j commited on
Commit
8054480
·
verified ·
1 Parent(s): e4510f9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -6,6 +6,5 @@ RUN pip install fastapi requests libretranslate uvicorn[standard]==0.17.*
6
 
7
  COPY . .
8
 
9
- #RUN python main.py --load-only hi,en
10
-
11
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
6
 
7
  COPY . .
8
 
9
+ # Start both the FastAPI app and the auxiliary process in parallel
10
+ CMD ["bash", "-c", "uvicorn app:app --host 0.0.0.0 --port 7860 & python main.py --load-only hi,en"]