arabic-tts-server / Dockerfile
shada-elewa's picture
Update Dockerfile
ab9b6fb verified
raw
history blame contribute delete
547 Bytes
FROM python:3.10
# Add build tools needed for the TTS library
RUN apt-get update && apt-get install -y \
ffmpeg \
build-essential \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . /code/
# Set a cache directory for the models so they don't re-download every time
ENV TTS_HOME=/code/.cache
RUN mkdir -p /code/.cache
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]