Download Dockerfile from CDOM201/domtts: direct link, hf CLI and curl.
- Browser
- Download file 711 Bytes
-
https://huggingface.co/spaces/CDOM201/domtts/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/CDOM201/domtts/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/CDOM201/domtts/resolve/main/Dockerfile
711 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| COPY . /app | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install -e . | |
| COPY unidic-3.1.0.zip /usr/local/lib/python3.9/site-packages/unidic/unidic.zip | |
| RUN sed -i '93s/./#/' /usr/local/lib/python3.9/site-packages/unidic/download.py && \ | |
| sed -i '63s/./#/' /usr/local/lib/python3.9/site-packages/unidic/download.py && \ | |
| sed -i '93a \ \ \ \ download_and_clean("3.10.0", "https://example.com/unidic.zip")' /usr/local/lib/python3.9/site-packages/unidic/download.py | |
| RUN python -m unidic download | |
| RUN python melo/init_downloads.py | |
| CMD ["python", "./melo/app.py", "--host", "0.0.0.0", "--port", "7860"] |