Alshargi commited on
Commit
f2436e3
·
verified ·
1 Parent(s): b77a1f4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -14
Dockerfile CHANGED
@@ -1,20 +1,10 @@
1
- FROM python:3.11-slim
 
2
 
3
  WORKDIR /app
 
4
 
5
- RUN apt-get update && apt-get install -y --no-install-recommends \
6
- git \
7
- && rm -rf /var/lib/apt/lists/*
8
-
9
- COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
- COPY . .
13
-
14
- ENV HADITH_INDEX_PATH=hadith_ar.faiss
15
- ENV HADITH_META_PATH=hadith_meta.parquet
16
- ENV HADITH_MODEL_NAME=intfloat/multilingual-e5-base
17
-
18
  EXPOSE 7860
19
-
20
- CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app", "--timeout", "180"]
 
1
+ # Dockerfile (use Docker Space)
2
+ FROM python:3.10-slim
3
 
4
  WORKDIR /app
5
+ COPY . /app
6
 
 
 
 
 
 
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
 
 
 
 
 
 
9
  EXPOSE 7860
10
+ CMD ["python", "app.py"]