File size: 417 Bytes
fca8804 9dddbfd fca8804 037f003 9dddbfd a3d8f41 037f003 7450245 037f003 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | FROM python:3.10-slim
# Install ffmpeg and libsndfile1 for audio decoding
RUN apt-get update && apt-get install -y ffmpeg libsndfile1
# Create writable cache directory
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
ENV HF_HOME=/app/cache
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY main.py .
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|