From 3370b4cd19b3ff39146128bf81a98e3531739e7a Mon Sep 17 00:00:00 2001 From: kalazus Date: Tue, 6 Feb 2024 15:35:37 +0300 Subject: [PATCH] rm useless variable, fix --- Dockerfile | 2 -- scripts/entrypoint.sh | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) 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