Navya-Sree commited on
Commit
ff27614
·
verified ·
1 Parent(s): 06a4414

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -12
Dockerfile CHANGED
@@ -1,33 +1,31 @@
1
- # Use Python 3.10 (Stable and compatible with OR-Tools)
2
  FROM python:3.10-slim
3
 
4
- # Set the working directory inside the container
5
  WORKDIR /app
6
 
7
- # Install system dependencies
 
8
  RUN apt-get update && apt-get install -y \
9
  build-essential \
10
  curl \
11
- software-properties-common \
12
  git \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
- # Copy requirements.txt first (to cache dependencies)
16
  COPY requirements.txt .
17
 
18
- # Install Python libraries
19
  RUN pip3 install --no-cache-dir -r requirements.txt
20
 
21
- # --- CRITICAL CHANGE HERE ---
22
- # Copy EVERYTHING from your current folder to the container
23
- # This ensures app.py, config.py, agents.py, and utils.py are all copied.
24
  COPY . .
25
 
26
- # Expose Streamlit port
27
  EXPOSE 8501
28
 
29
- # Healthcheck to ensure the app is running
30
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
31
 
32
- # Point to "app.py" instead of "src/streamlit_app.py"
33
  ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
1
+ # Use Python 3.10-slim (More stable/compatible than 3.13 for OR-Tools)
2
  FROM python:3.10-slim
3
 
4
+ # Set working directory
5
  WORKDIR /app
6
 
7
+ # Install only the absolute necessities
8
+ # REMOVED: software-properties-common (this was causing your error)
9
  RUN apt-get update && apt-get install -y \
10
  build-essential \
11
  curl \
 
12
  git \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
+ # Copy requirements first (for caching)
16
  COPY requirements.txt .
17
 
18
+ # Install Python dependencies
19
  RUN pip3 install --no-cache-dir -r requirements.txt
20
 
21
+ # Copy ALL your application files (app.py, config.py, agents.py, utils.py)
 
 
22
  COPY . .
23
 
24
+ # Open the port
25
  EXPOSE 8501
26
 
27
+ # Healthcheck
28
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
29
 
30
+ # Run the app
31
  ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]