22 lines
818 B
Docker
22 lines
818 B
Docker
# Use an official Python runtime as a parent image
|
|
FROM python:3.8-slim
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /app
|
|
|
|
# Clone the repository
|
|
RUN apt-get update && \
|
|
apt-get install -y git aria2 unzip && \
|
|
git clone -b dev https://github.com/camenduru/OpenVoice /app && \
|
|
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/OpenVoice/resolve/main/checkpoints_1226.zip -d /app -o checkpoints_1226.zip && \
|
|
unzip /app/checkpoints_1226.zip -d /app
|
|
|
|
# Install any needed packages
|
|
RUN pip install gradio==3.50.2 langid faster-whisper whisper-timestamped unidecode eng-to-ipa pypinyin cn2an
|
|
|
|
# Make port available to the world outside this container
|
|
EXPOSE 7860
|
|
|
|
# Run openvoice_app.py when the container launches
|
|
CMD ["python", "openvoice_app.py", "--share"]
|