Skip to content

Commit

Permalink
rm useless variable, fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kalazus committed Feb 6, 2024
1 parent 77195d4 commit 3370b4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
8 changes: 4 additions & 4 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3370b4c

Please sign in to comment.