refactor: docker image layout

This commit is contained in:
Félix Voituret
2020-06-11 11:53:35 +02:00
parent 05aa98a06a
commit 9f61fa8908
10 changed files with 117 additions and 133 deletions

View File

@@ -0,0 +1,16 @@
ARG BASE=python:3.6
ARG SPLEETER_PACKAGE=spleeter
ARG SPLEETER_VERSION=1.4.9
FROM ${BASE}
ENV MODEL_PATH /model
RUN mkdir -p /model
COPY audio_example.mp3 .
RUN apt-get update && apt-get install -y ffmpeg libsndfile1
RUN pip install musdb museval
RUN pip install ${SPLEETER_PACKAGE}==${SPLEETER_VERSION}
ENTRYPOINT ["spleeter"]