build: use uid of user building the build containers
This commit is contained in:
committed by
SomberNight
parent
08ae0a73b2
commit
ab073827cf
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user