1
0

build: follow-up prev: only use host userid for local dev builds

reproducibility probably needs a hardcoded userid

Also, move the UID arg later in the dockerfiles, for better caching.
(if local dev build and repro build set different UIDs, the build caches
will diverge at that step)
This commit is contained in:
SomberNight
2023-03-20 01:47:41 +00:00
parent ab073827cf
commit 6e472efd5f
8 changed files with 20 additions and 12 deletions

View File

@@ -37,10 +37,13 @@ if [ ! -z "$ELECBUILD_NOCACHE" ] ; then
DOCKER_BUILD_FLAGS="--pull --no-cache"
fi
if [ -z "$ELECBUILD_COMMIT" ] ; then # local dev build
DOCKER_BUILD_FLAGS="$DOCKER_BUILD_FLAGS --build-arg UID=$BUILD_UID"
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"