Skip to content
Snippets Groups Projects
Commit a4a7b175 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

docker: fall back to UID 1000 in case the container isn't build with the build script

It's usually the right ID, so avoid any errors in that case.
parent 7cf091c1
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
STOPSIGNAL SIGQUIT
ARG UID
RUN useradd -u "$UID" -ms /bin/bash user
RUN useradd -u "${UID:-1000}" -ms /bin/bash user
RUN echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# Install a newer composer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment