Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix: no interaction when clearing poetry cache (#6752)

Arpan Koiralab018567d5328
diff --git a/openhands/runtime/utils/runtime_templates/Dockerfile.j2 b/openhands/runtime/utils/runtime_templates/Dockerfile.j2
index ef073a6a7a..c0d915f75e 100644
--- a/openhands/runtime/utils/runtime_templates/Dockerfile.j2
+++ b/openhands/runtime/utils/runtime_templates/Dockerfile.j2
@@ -88,7 +88,7 @@ RUN \
# Set environment variables
echo "OH_INTERPRETER_PATH=$(/openhands/micromamba/bin/micromamba run -n openhands poetry run python -c "import sys; print(sys.executable)")" >> /etc/environment && \
# Clear caches
- /openhands/micromamba/bin/micromamba run -n openhands poetry cache clear --all . && \
+ /openhands/micromamba/bin/micromamba run -n openhands poetry cache clear --all . -n && \
# Set permissions
chmod -R g+rws /openhands/poetry && \
mkdir -p /openhands/workspace && chmod -R g+rws,o+rw /openhands/workspace && \