mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-06 04:32:43 +00:00
fix: add custom entrypoint
This commit is contained in:
13
docker/conda-entrypoint.sh
Normal file
13
docker/conda-entrypoint.sh
Normal 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 "$@"
|
||||
@@ -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"]
|
||||
Reference in New Issue
Block a user