Spaces:
Sleeping
Sleeping
| # Use full Python image | |
| FROM python:3.11 | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies needed for Python packages | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| libffi-dev \ | |
| libssl-dev \ | |
| git \ | |
| curl \ | |
| wget \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Upgrade pip | |
| RUN pip install --upgrade pip | |
| # Copy requirements first (better caching) | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app | |
| COPY app.py . | |
| # Expose Streamlit port | |
| EXPOSE 8501 | |
| # Run Streamlit | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |