grvelight commited on
Commit
67c1769
Β·
verified Β·
1 Parent(s): 460f310

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -6
Dockerfile CHANGED
@@ -1,7 +1,4 @@
1
  # ── Dockerfile β€” CovidKosha RAG API ──────────────────────
2
- # Build: docker build -t covidkosha-api .
3
- # Run: docker run -p 8000:8000 --env-file .env covidkosha-api
4
-
5
  FROM python:3.11-slim
6
 
7
  # System deps needed by faiss + sentence-transformers
@@ -16,13 +13,12 @@ WORKDIR /app
16
  COPY requirements.txt .
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
- # Copy app code
20
- COPY api.py .
21
 
22
  # Pre-download the embedding model at build time so startup is instant
23
  RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
24
 
25
  EXPOSE 8000
26
 
27
- # Secrets come in via --env-file .env at runtime β€” never baked into image
28
  CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
 
1
  # ── Dockerfile β€” CovidKosha RAG API ──────────────────────
 
 
 
2
  FROM python:3.11-slim
3
 
4
  # System deps needed by faiss + sentence-transformers
 
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
+ # Copy app code + data files
17
+ COPY api.py chunks.json index.faiss ./
18
 
19
  # Pre-download the embedding model at build time so startup is instant
20
  RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
21
 
22
  EXPOSE 8000
23
 
 
24
  CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]