FROM python:3.10-slim WORKDIR /app # Copy requirements and constraints files COPY requirements.txt . COPY constraints.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt -c constraints.txt # Copy the rest of the application COPY . . # Expose the port Streamlit runs on EXPOSE 8501 # Set the entry point to run the Streamlit app CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]