Docker: Add photoprism/development:armv7 Dockerfile for test & dev #1815

This commit is contained in:
Michael Mayer
2021-12-14 20:56:24 +01:00
parent 0f0c0aaa0b
commit 5d0a57c462
3 changed files with 133 additions and 1 deletions

View File

@@ -44,7 +44,8 @@ elif [[ $1 == "static" ]]; then
echo "Done."
else
echo "Building production binary..."
for i in {1..3}; do
# try again if it fails e.g. due a network connection issue...
for i in {1..2}; do
echo "Build #$i:" && go build -ldflags "-s -w -X main.version=${PHOTOPRISM_DATE}-${PHOTOPRISM_VERSION}-${PHOTOPRISM_OS}-${PHOTOPRISM_ARCH}" -o $2 cmd/photoprism/photoprism.go && break || sleep 5;
done
du -h $2