From b9e959c507e08e8238d873c502bf1d09004742c7 Mon Sep 17 00:00:00 2001 From: SthPhoenix Date: Tue, 18 Feb 2020 20:59:01 +0300 Subject: [PATCH] Update version and add some variables --- deploy.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index bd8fed1..27a9531 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,12 +1,16 @@ #! /bin/bash IMAGE='insightface-rest' -TAG='v0.1' +TAG='v0.1.2' docker rm $(docker stop $(docker ps -a -q --filter ancestor=$IMAGE:$TAG --format="{{.ID}}")) docker image rm $IMAGE:$TAG docker build -t $IMAGE:$TAG . -docker run -p 6000:6000 $IMAGE:$TAG +docker run -p 18080:18080\ + -e PYTHONUNBUFFERED=0\ + -e PORT=18080\ + -e MAX_SIZE=640\ + $IMAGE:$TAG