fix: include attribution

pull/1337/head
Oliver Eyton-Williams 4 years ago
parent f1018d7ffd
commit c1af9ce6ab
No known key found for this signature in database
GPG Key ID: C4B00673186643C5

@ -11,6 +11,8 @@ RUN apt-get update && \
gem install bundler gem install bundler
# Create the dev user, add them to sudoers and set up a home dir # Create the dev user, add them to sudoers and set up a home dir
# Adapted slightly from this excellent blog post:
# https://jtreminio.com/blog/running-docker-containers-as-current-host-user
RUN if [ ${USER_ID:-0} -ne 0 ] && [ ${GROUP_ID:-0} -ne 0 ]; then \ RUN if [ ${USER_ID:-0} -ne 0 ] && [ ${GROUP_ID:-0} -ne 0 ]; then \
groupadd -g ${GROUP_ID} devuser &&\ groupadd -g ${GROUP_ID} devuser &&\
useradd -l -u ${USER_ID} -g devuser devuser &&\ useradd -l -u ${USER_ID} -g devuser devuser &&\

Loading…
Cancel
Save