Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix jinja / dockerfile syntax by removing newlines (#10476)

Zacharias Fisches36d31b74f7c1
diff --git a/openhands/runtime/utils/runtime_templates/Dockerfile.j2 b/openhands/runtime/utils/runtime_templates/Dockerfile.j2
index ecc99d792f..a9ed4658f5 100644
--- a/openhands/runtime/utils/runtime_templates/Dockerfile.j2
+++ b/openhands/runtime/utils/runtime_templates/Dockerfile.j2
@@ -177,9 +177,7 @@ RUN \
/openhands/micromamba/bin/micromamba run -n openhands poetry install --only main,runtime --no-interaction --no-root && \
# Update and install additional tools
# (There used to be an "apt-get update" here, hopefully we can skip it.)
- {% if enable_browser %}
- /openhands/micromamba/bin/micromamba run -n openhands poetry run playwright install --with-deps chromium && \
- {% endif %}
+ {% if enable_browser %}/openhands/micromamba/bin/micromamba run -n openhands poetry run playwright install --with-deps chromium && \{% endif %}
# Set environment variables
/openhands/micromamba/bin/micromamba run -n openhands poetry run python -c "import sys; print('OH_INTERPRETER_PATH=' + sys.executable)" >> /etc/environment && \
# Set permissions