ji / Dockerfile
Jai1432002's picture
x
005a0a5
raw
history blame contribute delete
589 Bytes
FROM python:3.11.7
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install --no-install-recommends -y sox libsox-fmt-all curl wget gcc git git-lfs build-essential libaio-dev libsndfile1 ssh ffmpeg && \
apt-get clean && apt-get -y autoremove
WORKDIR /app
COPY requirements.txt .
RUN python -m pip install --use-deprecated=legacy-resolver -r requirements.txt \
&& python -m pip cache purge
RUN python -m unidic download
RUN mkdir -p /app/tts_models
COPY app.py .
ENV USE_CPU=1
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]