1
0

build: use uid of user building the build containers

This commit is contained in:
Sander van Grieken
2023-03-19 14:29:29 +01:00
committed by SomberNight
parent 08ae0a73b2
commit ab073827cf
8 changed files with 20 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ PROJECT_ROOT_OR_FRESHCLONE_ROOT="$PROJECT_ROOT"
CONTRIB="$PROJECT_ROOT/contrib"
CONTRIB_ANDROID="$CONTRIB/android"
DISTDIR="$PROJECT_ROOT/dist"
BUILD_UID=$(/usr/bin/stat -c %u "$PROJECT_ROOT")
. "$CONTRIB"/build_tools_util.sh
@@ -39,6 +40,7 @@ fi
info "building docker image."
docker build \
$DOCKER_BUILD_FLAGS \
--build-arg UID=$BUILD_UID \
-t electrum-android-builder-img \
--file "$CONTRIB_ANDROID/Dockerfile" \
"$PROJECT_ROOT"