From 2313a90644033b197796de8bd8f50bc371a9dc6c Mon Sep 17 00:00:00 2001 From: Sergey Ukolov Date: Tue, 6 Oct 2020 09:04:15 +0300 Subject: [PATCH] Run command as a current user Run command as a current user to avoid creating of build artifact files with the root privileges which then are not handy to remove/overwrite. --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 1699d9d..6f85527 100755 --- a/build.sh +++ b/build.sh @@ -37,9 +37,10 @@ docker run \ -v ${RACK_DIR}:/opt/Rack:ro \ -v ${WORKING_DIR}:/opt/workspace \ -w /opt/workspace \ + --user $(id -u):$(id -g) \ --entrypoint "make" \ --entrypoint "/bin/bash" \ ${DOCKER_IMAGE_NAME} \ -c "make clean && make dist -j$(nproc --all)" -exit 0 \ No newline at end of file +exit 0