Skip to content

Commit

Permalink
Detect if the image has already installed
Browse files Browse the repository at this point in the history
  • Loading branch information
aagustinconti committed Nov 15, 2022
1 parent b30949b commit 1884ea3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,18 @@

# Create the image of torch

echo "Building the Docker Image..."
echo "Checking if the Image already exists..."

if [[ "$(docker image inspect yolov7_detect_track_count:latest 2> /dev/null)" == "" ]]; then

echo "The image doesn't exist. Building the Docker Image..."

cd ./dependencies
docker build -t yolov7_detect_track_count .
cd ..

fi

cd ./dependencies
docker build -t yolov7_detect_track_count .
cd ..

# And then run
# 1. To allow the use of screen
Expand Down

0 comments on commit 1884ea3

Please sign in to comment.