fix: add custom entrypoint

This commit is contained in:
Félix Voituret
2020-06-19 14:13:49 +02:00
parent 072209a035
commit 07090238f0
2 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
######################################################################
# Custom entrypoint that activate conda before running spleeter.
#
# @author Félix Voituret <fvoituret@deezer.com>
# @version 1.0.0
######################################################################
# shellcheck disable=1091
. "/opt/conda/etc/profile.d/conda.sh"
conda activate base
spleeter "$@"

View File

@@ -9,5 +9,6 @@ ENV MODEL_PATH /model
RUN mkdir -p /model
RUN conda install -y -c conda-forge musdb
RUN conda install -y -c conda-forge ${SPLEETER_PACKAGE}==${SPLEETER_VERSION}
ENTRYPOINT "source /root/.bashrc && spleeter"
RUN echo "source /root/.bashrc; spleeter \"$@\"> /opt/entrypoint.sh"
COPY conda-entrypoint.sh spleeter-entrypoint.sh
ENTRYPOINT ["spleeter-entrypoint.sh"]