Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
@@ -6,6 +6,5 @@ RUN pip install fastapi requests libretranslate uvicorn[standard]==0.17.*
|
|
6 |
|
7 |
COPY . .
|
8 |
|
9 |
-
#
|
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"]
|
|