photoprism/scripts/docker-build.sh
2019-05-16 08:41:16 +02:00

10 lines
313 B
Bash
Executable file

#!/usr/bin/env bash
if [[ -z $1 ]] || [[ -z $2 ]]; then
echo "Please provide a container image name and version" 1>&2
exit 1
else
echo "Building 'photoprism/$1:$2'...";
docker build --build-arg BUILD_TAG=$2 -t photoprism/$1:latest -t photoprism/$1:$2 -f docker/$1/Dockerfile .
echo "Done"
fi