Spaces:
Runtime error
Runtime error
| # Use Hugging Face’s recommended base image | |
| FROM python:3.11-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy project files to the container | |
| COPY . /app | |
| # Install required system dependencies | |
| RUN apt update && apt install -y curl unzip libnss3 && \ | |
| pip install --no-cache-dir --upgrade pip && \ | |
| if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; fi && \ | |
| playwright install --with-deps chromium | |
| # Expose the Streamlit port | |
| EXPOSE 8501 | |
| # Start Streamlit | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |