NaveenKumar5 commited on
Commit
88d5ce4
·
verified ·
1 Parent(s): 09ee295

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -8
Dockerfile CHANGED
@@ -1,21 +1,19 @@
1
- # Use official lightweight Python image
2
  FROM python:3.9-slim
3
 
4
- # Set working directory
5
  WORKDIR /app
6
 
7
- # Install system dependencies
8
- RUN apt-get update && apt-get install -y libgl1
 
 
 
9
 
10
- # Copy requirements and install
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
- # Copy source code
15
  COPY src/ ./src/
16
 
17
- # Expose port for Streamlit
18
  EXPOSE 8501
19
 
20
- # Run the Streamlit app
21
  CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.enableCORS=false"]
 
 
 
1
  FROM python:3.9-slim
2
 
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies needed for OpenCV
6
+ RUN apt-get update && apt-get install -y \
7
+ libgl1 \
8
+ libglib2.0-0 \
9
+ && rm -rf /var/lib/apt/lists/*
10
 
 
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
 
14
  COPY src/ ./src/
15
 
 
16
  EXPOSE 8501
17
 
 
18
  CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.enableCORS=false"]
19
+