Spaces:
Paused
Paused
File size: 470 Bytes
9ad87ac beb6c9e 85e19ad c122f91 d4d5bb3 43c185f beb6c9e d4d5bb3 |
1 2 3 4 5 6 7 8 9 10 11 |
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"] |