Docker: Update ARMv7 docs and include dedicated make targets for ARM64

This commit is contained in:
Michael Mayer
2022-02-13 16:25:59 +01:00
parent ec8b0fd212
commit e88b4c1809
4 changed files with 33 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ elif [[ $3 =~ $NUMERIC ]]; then
-t photoprism/$1:latest \
-t photoprism/$1:$3 \
--push .
else
elif [[ $4 ]]; then
echo "Building 'photoprism/$1:$3' in docker/${1/-//}$4/Dockerfile..."
DOCKER_TAG=$(date -u +%Y%m%d)
docker buildx build \
@@ -50,6 +50,19 @@ else
-f docker/${1/-//}$4/Dockerfile \
-t photoprism/$1:$3 \
--push .
else
echo "Building 'photoprism/$1:$3' in docker/${1/-//}/Dockerfile..."
DOCKER_TAG=$(date -u +%Y%m%d)
docker buildx build \
--platform $2 \
--pull \
--no-cache \
--build-arg BUILD_TAG=$DOCKER_TAG \
--build-arg GOPROXY \
--build-arg GODEBUG \
-f docker/${1/-//}/Dockerfile \
-t photoprism/$1:$3 \
--push .
fi
echo "Done"