Krina2005 commited on
Commit
b7cb736
·
verified ·
1 Parent(s): d5f92d4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -26
Dockerfile CHANGED
@@ -1,27 +1,27 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /app
4
-
5
- # System dependency (needed for sklearn / numpy)
6
- RUN apt-get update && apt-get install -y --no-install-recommends \
7
- libgomp1 \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
- # Copy requirements first (for caching)
11
- COPY requirements.txt .
12
-
13
- # Install Python dependencies
14
- RUN pip install --no-cache-dir --upgrade pip \
15
- && pip install --no-cache-dir -r requirements.txt
16
-
17
- # Copy project files
18
- COPY . .
19
-
20
- # Pre-download SBERT model (VERY IMPORTANT)
21
- RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
22
-
23
- # Hugging Face port
24
- EXPOSE 7860
25
-
26
- # Run Flask app
27
  CMD ["python", "app.py"]
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # System dependency (needed for sklearn / numpy)
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ libgomp1 \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Copy requirements first (for caching)
11
+ COPY requirements.txt .
12
+
13
+ # Install Python dependencies
14
+ RUN pip install --no-cache-dir --upgrade pip \
15
+ && pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Copy project files
18
+ COPY . .
19
+
20
+ # Pre-download SBERT model (VERY IMPORTANT)
21
+ RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
22
+
23
+ # Hugging Face port
24
+ EXPOSE 7860
25
+
26
+ # Run Flask app
27
  CMD ["python", "app.py"]