Spaces:
Sleeping
Sleeping
Download Dockerfile from deeplearning/loris-audio-morphing: direct link, hf CLI and curl.
- Browser
- Download file 847 Bytes
-
https://huggingface.co/spaces/deeplearning/loris-audio-morphing/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/deeplearning/loris-audio-morphing/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/deeplearning/loris-audio-morphing/resolve/main/Dockerfile
847 Bytes
| FROM python:3.10-slim | |
| # ---------- system ---------- | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| automake \ | |
| autoconf \ | |
| libtool \ | |
| libsndfile1-dev \ | |
| unzip \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ---------- SDIF (ZIP, release-arkiv) ---------- | |
| WORKDIR /opt | |
| COPY sdif.zip /opt/ | |
| RUN unzip sdif.zip && \ | |
| cd SDIF-* && \ | |
| ./configure && \ | |
| make && make install | |
| # ---------- LORIS ---------- | |
| COPY loris-1.8.tar.gz /opt/ | |
| RUN tar xzf loris-1.8.tar.gz && \ | |
| cd loris-1.8 && \ | |
| ./configure && \ | |
| make && make install | |
| # ---------- runtime env ---------- | |
| ENV PATH=/usr/local/bin:$PATH | |
| ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH | |
| # ---------- Python ---------- | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| CMD ["python", "app.py"] | |