Skip to content

Commit

Permalink
set a higer UID_MAX (All-Hands-AI#1788)
Browse files Browse the repository at this point in the history
Co-authored-by: Yufan Song <[email protected]>
  • Loading branch information
rbren and yufansong authored May 15, 2024
1 parent 123968f commit 1353208
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions containers/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ RUN apt-get update -y \
&& apt-get install -y curl ssh sudo

RUN sed -i 's/^UID_MIN.*/UID_MIN 499/' /etc/login.defs # Default is 1000, but OSX is often 501
RUN sed -i 's/^UID_MAX.*/UID_MAX 1000000/' /etc/login.defs # Default is 60000, but we've seen up to 200000
RUN groupadd app
RUN useradd -l -m -u $OPENDEVIN_USER_ID -s /bin/bash opendevin && \
Expand Down

0 comments on commit 1353208

Please sign in to comment.