NightPrince commited on
Commit
a3ba0d0
·
1 Parent(s): e117b12

Fix ASGI app import (app:app)

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -16,9 +16,10 @@ RUN pip install --no-cache-dir -r requirements.txt
16
  COPY . .
17
 
18
  # Pre-download the local model so it's baked into the Docker image
 
19
 
20
  # Expose FastAPI port
21
  EXPOSE 7860
22
 
23
  # Run FastAPI
24
- CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
 
16
  COPY . .
17
 
18
  # Pre-download the local model so it's baked into the Docker image
19
+ RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2')"
20
 
21
  # Expose FastAPI port
22
  EXPOSE 7860
23
 
24
  # Run FastAPI
25
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]