Skip to content

Commit 50371d2

Browse files
committed
docker image: Copy the cheribuild configuration to the home directory
1 parent 3210bac commit 50371d2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docker/entrypoint.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ fi
1212
addgroup --quiet --gid ${cheribuild_gid} "${cheribuild_user}"
1313
useradd --uid "${cheribuild_uid}" --gid "${cheribuild_gid}" --create-home --no-user-group --password '*' "${cheribuild_user}"
1414

15-
# Run the actual command:
15+
# Copy the cheribuild configuration to the unprivileged user's home directory:
1616
export HOME="/home/${cheribuild_user}"
17+
mkdir "${HOME}/.config"
18+
cp -f /root/.config/cheribuild.json "${HOME}/.config/cheribuild.json"
19+
chown -R "${cheribuild_uid}:${cheribuild_gid}" "${HOME}/.config"
20+
# Run the actual command:
1721
exec gosu "${cheribuild_user}" "$@"

0 commit comments

Comments
 (0)