Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Update Dockerfile to assign workspace directory properly to user (#1830)

John Tackman171764469d51
diff --git a/containers/app/Dockerfile b/containers/app/Dockerfile
index ed2de39495..ffcea9f8e5 100644
--- a/containers/app/Dockerfile
+++ b/containers/app/Dockerfile
@@ -53,6 +53,7 @@ RUN useradd -l -m -u $OPENDEVIN_USER_ID -s /bin/bash opendevin && \
usermod -aG sudo opendevin && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN chown -R opendevin:app /app && chmod -R 770 /app
+RUN sudo chown -R opendevin:app $WORKSPACE_BASE && sudo chmod -R 770 $WORKSPACE_BASE
USER opendevin
ENV VIRTUAL_ENV=/app/.venv \