attempt to fix docker issue (#3426)

This commit is contained in:
Xingyao Wang
2024-08-17 03:41:24 +08:00
committed by GitHub
parent f8b129da43
commit 3f20e4edc6
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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