# VMS - Český Krumlov - Anonymizer #### Docker Build - Powershell (One Line) ```powershell $tag = ("0.0.3").Trim(); git reset --hard; git pull origin master; git tag $tag; git push --tags; docker build -t git.steelants.cz/steelants/py_ck:$tag .; docker push git.steelants.cz/steelants/py_ck:$tag; docker build -t git.steelants.cz/steelants/py_ck:latest .; docker push git.steelants.cz/steelants/py_ck:latest ``` #### Docker Build - Bash (One Line) ```bash export TAG="0.0.3" && sudo docker build -t git.steelants.cz/steelants/py_ck:"$TAG" . && sudo docker push git.steelants.cz/steelants/py_ck:"$TAG" && sudo docker build -t git.steelants.cz/steelants/py_ck:latest . && sudo docker push git.steelants.cz/steelants/py_ck:latest ``` #### Docker Stack Setup ```yaml services: ck-anonym: image: git.steelants.cz/steelants/lar_py:latest restart: unless-stopped environment: API_ROOT: http://ck:8080 FACE_TRASHOLD: 0.5 volumes: - ${PWD}/app_data/:/app/data/ networks: {} ``` ```python pip3 install -r requirements.txt ```