Spaces:
Running
Running
| FROM python:3.9-slim | |
| # Create a non-root user | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| COPY --chown=user . /app | |
| # Make port 7860 available (required for HF Spaces) | |
| EXPOSE 7860 | |
| # Start the app | |
| CMD ["python", "app.py"] |