Spaces:
Runtime error
Runtime error
| FROM python:3.9-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Explicitly add Python's script directory to PATH | |
| ENV PATH="/usr/local/bin:$PATH" | |
| # Create the .streamlit directory if it doesn't exist and grant write permissions | |
| RUN mkdir -p /.streamlit && chmod -R 777 /.streamlit | |
| EXPOSE 8501 | |
| CMD ["streamlit", "run", "app.py"] | |