Spaces:
Build error
Build error
| FROM python:3.10-slim | |
| WORKDIR /app | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| RUN mkdir -p /tmp/transformers_cache && \ | |
| chmod 777 /tmp/transformers_cache | |
| RUN useradd -m appuser | |
| USER appuser | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |