Spaces:
Sleeping
Sleeping
| # Use an official Python runtime as a parent image | |
| FROM python:3.9-slim | |
| # Set a writable cache directory for the numba library | |
| ENV NUMBA_CACHE_DIR=/tmp | |
| # Install ffmpeg | |
| RUN apt-get update && apt-get install -y ffmpeg | |
| # Set the working directory | |
| WORKDIR /code | |
| # Copy requirements | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Install packages | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy app | |
| COPY ./app /code/app | |
| # Run the application | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "10000"] |