# base image FROM python:3.11-slim # set workdir WORKDIR /app # install git + git-lfs + basics RUN apt-get update && apt-get install -y git curl && \ curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \ apt-get install -y git-lfs && \ git lfs install && \ rm -rf /var/lib/apt/lists/* # clone the repo RUN git clone https://huggingface.co/KevinAHM/pocket-tts-onnx # go into repo WORKDIR /app/pocket-tts-onnx # install python dependencies RUN pip install --upgrade pip RUN pip install -r requirements.txt RUN pip install gradio flask flask-sock soundfile RUN git lfs pull # then pull all LFS files # copy all contents of current folder into the repo folder COPY . /app/pocket-tts-onnx/ # expose port for gradio/flask EXPOSE 7860 # default command CMD ["python", "app.py"]