Spaces:
Running
Running
File size: 436 Bytes
690ba94 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
# INSTALL AUDIO DRIVERS
RUN apt-get update && apt-get install -y libsndfile1 ffmpeg && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . /code
RUN mkdir -p /code/cache && chmod -R 777 /code/cache
ENV XDG_CACHE_HOME=/code/cache
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |