FROM python:3.10-slim RUN apt-get update && apt-get install -y build-essential curl git && rm -rf /var/lib/apt/lists/* WORKDIR /app # Copy application files as the non-root user to avoid permission issues COPY . /app # Install dependencies, ensuring the streamlit executable is in PATH RUN pip install --upgrade pip && pip install --user -r requirements.txt ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]