noumanjavaid commited on
Commit
3172dab
·
verified ·
1 Parent(s): a5c305c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -2,9 +2,8 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies including PortAudio development library
6
- # and Python development headers.
7
- # Also added libasound2-dev which is often a dependency for PortAudio on Debian-based systems.
8
  RUN apt-get update && apt-get install -y \
9
  build-essential \
10
  curl \
@@ -13,6 +12,8 @@ RUN apt-get update && apt-get install -y \
13
  portaudio19-dev \
14
  python3-dev \
15
  libasound2-dev \
 
 
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
  COPY requirements.txt ./
@@ -31,5 +32,4 @@ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
31
  # Ensure your main Streamlit app file is correctly referenced here.
32
  # If your app file is directly in /app (e.g., app_streamlit_new.py from previous examples),
33
  # adjust the ENTRYPOINT accordingly.
34
- # For this example, I'm sticking to the 'src/streamlit_app.py' from your Dockerfile.
35
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies including PortAudio, Python dev headers, ALSA,
6
+ # and now also OpenGL libraries required by OpenCV.
 
7
  RUN apt-get update && apt-get install -y \
8
  build-essential \
9
  curl \
 
12
  portaudio19-dev \
13
  python3-dev \
14
  libasound2-dev \
15
+ libgl1-mesa-glx \
16
+ libglib2.0-0 \
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
  COPY requirements.txt ./
 
32
  # Ensure your main Streamlit app file is correctly referenced here.
33
  # If your app file is directly in /app (e.g., app_streamlit_new.py from previous examples),
34
  # adjust the ENTRYPOINT accordingly.
 
35
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]