Spaces:
Paused
Paused
FROM python:3.8-bullseye | |
RUN useradd -m -u 1000 user | |
USER user | |
COPY ./requirements.txt ./requirements.txt | |
RUN pip install -r requirements.txt | |
COPY ./app /home/user/app | |
WORKDIR /home/user/app | |
RUN cd /tmp && wget -qq https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/espeak-ng-data.tar.bz2 && tar xf espeak-ng-data.tar.bz2 | |
# Set the default command to run the application | |
CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |