2018-11-08 10:56:11 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-11-12 06:58:39 +01:00
|
|
|
if [[ -z $1 ]] || [[ -z $2 ]]; then
|
2018-11-08 10:56:11 +01:00
|
|
|
echo "Please provide a container image name and version" 1>&2
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
echo "Building 'photoprism/$1:$2'...";
|
|
|
|
docker build -t photoprism/$1:latest -t photoprism/$1:$2 -f docker/$1/Dockerfile .
|
|
|
|
echo "Done"
|
|
|
|
fi
|