MuhammadHaris01 commited on
Commit
8f16287
·
verified ·
1 Parent(s): 09c38e6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -18
Dockerfile CHANGED
@@ -1,19 +1,14 @@
1
- FROM python:3.11-slim
2
-
3
- WORKDIR /app
4
-
5
- # Install dependencies
6
- COPY requirements.txt .
7
- RUN pip install --no-cache-dir -r requirements.txt
8
-
9
- # Copy source files
10
- COPY analyze.py .
11
- COPY app.py .
12
-
13
- # Run analyze.py first to generate precomputed_data.json
14
- # then start Flask
15
- RUN python analyze.py
16
-
17
- EXPOSE 7860
18
-
19
  CMD ["python", "app.py"]
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ COPY analyze.py .
9
+ COPY app.py .
10
+ COPY precomputed_data.json .
11
+
12
+ EXPOSE 7860
13
+
 
 
 
 
 
14
  CMD ["python", "app.py"]