sharmaaditya2003 commited on
Commit
0a7a476
·
verified ·
1 Parent(s): 48833f2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -23
Dockerfile CHANGED
@@ -1,24 +1,24 @@
1
- # Use the official Python image
2
- FROM python:3.10-slim
3
-
4
- # Set the working directory
5
- WORKDIR /app
6
-
7
- # Install system dependencies for FAISS and Open CV
8
- RUN apt-get update && apt-get install -y \
9
- libgl1-mesa-glx \
10
- libglib2.0-0 \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- # Copy requirements and install
14
- COPY requirements.txt .
15
- RUN pip install --no-cache-dir -r requirements.txt
16
-
17
- # Copy the rest of your app and artefacts
18
- COPY . .
19
-
20
- # Expose the port Streamlit runs on
21
- EXPOSE 7860
22
-
23
- # Command to run the app
24
  CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
 
1
+ # Use the official Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Updated system dependencies for the newer Debian base
8
+ RUN apt-get update && apt-get install -y \
9
+ libgl1 \
10
+ libglib2.0-0 \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Copy requirements and install
14
+ COPY requirements.txt .
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Copy the rest of your app and artefacts
18
+ COPY . .
19
+
20
+ # Expose the port Streamlit runs on
21
+ EXPOSE 7860
22
+
23
+ # Command to run the app
24
  CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]