loris-audio-morphing / Dockerfile
deeplearning's picture
Update Dockerfile
191b0a6 verified
raw
history blame contribute delete
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"]