UmaKumpatla commited on
Commit
2538168
·
verified ·
1 Parent(s): 3868e66

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -11
Dockerfile CHANGED
@@ -1,17 +1,19 @@
1
- # Base image
2
- FROM python:3.9-slim
3
 
4
- # Install required system packages
5
  RUN apt-get update && apt-get install -y \
6
- libgl1 \
 
 
 
7
  && rm -rf /var/lib/apt/lists/*
8
- RUN apt-get update && apt-get install -y libgl1-mesa-glx
9
- # Copy your code
10
- COPY . /app
11
- WORKDIR /app
12
 
13
- # Install Python dependencies
 
14
  RUN pip install -r requirements.txt
15
 
16
- # Run your app
17
- CMD ["streamlit", "run", "src/streamlit_app.py"]
 
 
 
 
1
+ FROM python:3.10-slim
 
2
 
3
+ # Install required system libraries for OpenCV
4
  RUN apt-get update && apt-get install -y \
5
+ libglib2.0-0 \
6
+ libsm6 \
7
+ libxrender1 \
8
+ libxext6 \
9
  && rm -rf /var/lib/apt/lists/*
 
 
 
 
10
 
11
+ # Copy and install Python dependencies
12
+ COPY requirements.txt .
13
  RUN pip install -r requirements.txt
14
 
15
+ # Copy app files
16
+ COPY . /app
17
+ WORKDIR /app
18
+
19
+ CMD ["streamlit", "run", "streamlit_app.py"]