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

@@ -1,11 +1,15 @@
FROM continuumio/miniconda3:4.7.10
ARG BASE=python:3.7
FROM ${BASE}
RUN mkdir -p /model
ENV MODEL_PATH /model
COPY audio_example.mp3 .
RUN conda install -y -c conda-forge musdb
# RUN conda install -y -c conda-forge museval
RUN conda install -y -c conda-forge spleeter=1.4.9
ENTRYPOINT ["spleeter"]
RUN apt-get update --fix-missing \
&& apt-get install -y wget bzip2 ca-certificates curl git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-4.6.14-Linux-x86_64.sh -O ~/miniconda.sh \
&& /bin/bash ~/miniconda.sh -b -p /opt/conda \
&& rm ~/miniconda.sh \
&& /opt/conda/bin/conda clean -tipsy \
&& ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh \
&& echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc \
&& echo "conda activate base" >> ~/.bashrc \
&& ln -s /opt/conda/bin/conda /usr/bin/conda