Support docker containers with non-root users and host user uid not equal to 1000 #191

Merged
telackey merged 4 commits from dboreham/builder-js-uid into main 2023-02-25 06:06:13 +00:00
Showing only changes of commit 17355c9e42 - Show all commits

View File

@ -22,7 +22,7 @@ RUN \
groupmod -g ${CERC_HOST_GID} ${USERNAME} ; \
fi \
&& if [ ${CERC_HOST_UID} -ne 1000 ] ; then \
usermod -u ${CERC_HOST_UID} -g ${CERC_HOST_GID} ${USERNAME} ; \
usermod -u ${CERC_HOST_UID} -g ${CERC_HOST_GID} ${USERNAME} && chown ${CERC_HOST_UID}:${CERC_HOST_GID} /home/${USERNAME} ; \
fi
RUN \