Skip to content

Commit

Permalink
attempt to fix docker issue (#3426)
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyaoww authored Aug 16, 2024
1 parent f8b129d commit 3f20e4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion containers/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ RUN useradd -l -m -u $OPENDEVIN_USER_ID -s /bin/bash opendevin && \
usermod -aG app opendevin && \
usermod -aG sudo opendevin && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN chown -R opendevin:app /app && chmod -R 770 /app
RUN chown -R opendevin:app /app && chmod -R 2770 /app
RUN sudo chown -R opendevin:app $WORKSPACE_BASE && sudo chmod -R 770 $WORKSPACE_BASE
USER opendevin

Expand Down
1 change: 1 addition & 0 deletions containers/app/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ else
fi

usermod -aG $DOCKER_SOCKET_GID enduser
usermod -aG opendevin enduser
echo "Running as enduser"
su enduser /bin/bash -c "$*"
fi

0 comments on commit 3f20e4e

Please sign in to comment.