Skip to content

Commit

Permalink
Update version and add some variables
Browse files Browse the repository at this point in the history
  • Loading branch information
SthPhoenix committed Feb 18, 2020
1 parent 49fc179 commit b9e959c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b9e959c

Please sign in to comment.