# Use an official Python runtime FROM python:3.11-slim # Set working directory WORKDIR /app # Set home so Streamlit writes ~/.streamlit inside /app ENV HOME=/app # Copy requirements and install COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the rest, including .streamlit folder COPY . . # Ensure /app is writable RUN chmod -R 777 /app EXPOSE 8501 CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]