pronunce-api / Dockerfile
prakashp1893's picture
Update Dockerfile
6c42c01 verified
raw
history blame
526 Bytes
FROM python:3.9
WORKDIR /code
# Install system dependencies: espeak for the model and ffmpeg for audio processing
RUN apt-get update && apt-get install -y espeak-ng ffmpeg
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY ./app.py /code/app.py
# Set environment variable to ensure cache stays within the /code directory
ENV HF_HOME="/code/cache"
ENV HUGGINGFACE_HUB_CACHE="/code.cache"
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]