themisfit21 commited on
Commit
fe4b826
·
verified ·
1 Parent(s): 3d708b1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -25
Dockerfile CHANGED
@@ -1,25 +1,25 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /app
4
-
5
- # Install system dependencies
6
- RUN apt-get update && apt-get install -y \
7
- libsm6 libxext6 libxrender-dev \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
- # Copy requirements
11
- COPY requirements.txt .
12
-
13
- # Install Python dependencies
14
- RUN pip install --no-cache-dir -r requirements.txt
15
-
16
- # Copy application files
17
- COPY app.py .
18
- COPY best_lung_model.h5 .
19
- COPY PulmoScanAI.html .
20
-
21
- # Expose port
22
- EXPOSE 7860
23
-
24
- # Run the Flask app
25
- CMD ["python", "app.py"]
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies for OpenCV
6
+ RUN apt-get update && apt-get install -y \
7
+ libsm6 libxext6 libxrender-dev libgl1 libglib2.0-0 \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Copy requirements
11
+ COPY requirements.txt .
12
+
13
+ # Install Python dependencies
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy application files
17
+ COPY app.py .
18
+ COPY best_lung_model.h5 .
19
+ COPY PulmoScanAI.html .
20
+
21
+ # Expose port
22
+ EXPOSE 7860
23
+
24
+ # Run the Flask app
25
+ CMD ["python", "app.py"]