Spaces:
Sleeping
Sleeping
| FROM python:3.12.2-slim | |
| WORKDIR /app | |
| COPY . /app | |
| RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 | |
| RUN pip install -r requirements.txt | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| # Copy the rest of the application code into the container at /app | |
| COPY --chown=user . /app/ | |
| # Command to run your application | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860" , "--workers" , "5"] |