# 1. Use Python 3.10 (Stable for AI) FROM python:3.10-slim # 2. Set working directory WORKDIR /app # 3. Install system dependencies RUN apt-get update && apt-get install -y \ build-essential \ curl \ git \ && rm -rf /var/lib/apt/lists/* # 4. Copy requirements (assuming it's in the root folder) COPY requirements.txt ./ RUN pip3 install --no-cache-dir -r requirements.txt # 5. Copy the 'src' folder into the container COPY src/ ./src/ # 6. Expose port EXPOSE 8501 # 7. Healthcheck HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health # 8. Run the app located inside src/ ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]