Spaces:
Running
Running
File size: 506 Bytes
e320304 6d999be 2e98eba e320304 2e98eba 0e2d936 e320304 2e98eba 6d999be e320304 6d999be 2e98eba e320304 6d999be |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
FROM python:3.10-slim
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
ENV HF_HOME=/app/cache
ENV TORCH_HOME=/app/cache
RUN apt-get update && \
apt-get install -y espeak-ng && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y ffmpeg && apt-get clean && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
WORKDIR /app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|