diff --git a/Dockerfile b/Dockerfile index 124b2ef..8916fdd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,6 @@ ENV DEBIAN_FRONTEND=noninteractive \ PIP_NO_CACHE_DIR=on \ SHELL=/bin/bash -ENV CMDARGS --always-gpu - RUN apt-get update -y && \ apt-get install -y curl libgl1 libglib2.0-0 python3-pip python-is-python3 git && \ apt-get clean && \ diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index e04bef3..328b015 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -5,17 +5,17 @@ ORIGINALDIR=/content/app [[ x"${DATADIR}" == "x" ]] && DATADIR=/content/data # make persistent dir from original dir -function mklink () { +function linkreplace () { mkdir -p $DATADIR - mv -if $DATADIR/$1 $ORIGINALDIR/$1 + mv -if $ORIGINALDIR/$1 $DATADIR/$1 ln -s $DATADIR/$1 $ORIGINALDIR/$1 } # models -mklink models +linkreplace models # outputs -mklink outputs +linkreplace outputs # Start application cd $ORIGINALDIR