Spaces:
Sleeping
Sleeping
FROM python:3.10-slim | |
RUN apt-get update && apt-get install -y \ | |
ffmpeg \ | |
libsndfile1 \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN useradd -m -u 1000 user | |
USER user | |
ENV HOME=/home/user \ | |
PATH=/home/user/.local/bin:$PATH \ | |
HF_HOME=/home/user/.cache/huggingface | |
WORKDIR $HOME/app | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir --user -r requirements.txt | |
COPY app.py . | |
EXPOSE 7860 | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--log-level", "debug"] |