kyanmahajan commited on
Commit
8bed8e2
·
verified ·
1 Parent(s): bcd12fd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -3
Dockerfile CHANGED
@@ -1,12 +1,22 @@
1
- FROM python:3.9
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
 
5
  COPY . /app
6
 
7
- RUN pip install --upgrade pip
8
- RUN pip install -r requirements.txt
9
 
 
10
  EXPOSE 7860
11
 
 
12
  CMD ["python", "lung.py"]
 
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
+ git \
8
+ libgl1 \
9
+ libglib2.0-0 \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Copy all files into the container
13
  COPY . /app
14
 
15
+ # Install Python dependencies
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Expose port for Flask/Gradio
19
  EXPOSE 7860
20
 
21
+ # Start the app
22
  CMD ["python", "lung.py"]