noumanjavaid commited on
Commit
45087fb
·
verified ·
1 Parent(s): a7e7850

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -2,8 +2,7 @@ FROM python:3.9-slim
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 \
@@ -17,9 +16,8 @@ RUN apt-get update && apt-get install -y \
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
  COPY requirements.txt ./
20
- # Assuming your main application script is in 'src/streamlit_app.py'
21
- # and any other source code is also under 'src/'
22
  COPY src/ ./src/
 
23
 
24
  # It's good practice to upgrade pip first
25
  RUN pip3 install --upgrade pip
@@ -29,7 +27,5 @@ EXPOSE 8501
29
 
30
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
31
 
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"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
 
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  curl \
 
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
  COPY requirements.txt ./
 
 
19
  COPY src/ ./src/
20
+ COPY .streamlit ./.streamlit # <-- ADD THIS LINE
21
 
22
  # It's good practice to upgrade pip first
23
  RUN pip3 install --upgrade pip
 
27
 
28
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
29
 
30
+ # Make sure this path matches your actual script name inside src/
31
+ ENTRYPOINT ["streamlit", "run", "src/your_app_script.py", "--server.port=8501", "--server.address=0.0.0.0"]