Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Custom runtime builder: fix NoEmptyContinuation error (#6211)

Boxuan Li516e2da52092
diff --git a/openhands/runtime/utils/runtime_templates/Dockerfile.j2 b/openhands/runtime/utils/runtime_templates/Dockerfile.j2
index 8a97792d9d..2dfd960505 100644
--- a/openhands/runtime/utils/runtime_templates/Dockerfile.j2
+++ b/openhands/runtime/utils/runtime_templates/Dockerfile.j2
@@ -16,12 +16,12 @@ ENV POETRY_VIRTUALENVS_PATH=/openhands/poetry \
RUN apt-get update && \
apt-get install -y --no-install-recommends \
wget curl sudo apt-utils git jq tmux \
- {% if 'ubuntu' in base_image and (base_image.endswith(':latest') or base_image.endswith(':24.04')) %}
+ {%- if 'ubuntu' in base_image and (base_image.endswith(':latest') or base_image.endswith(':24.04')) -%}
libgl1 \
- {% else %}
+ {%- else %}
libgl1-mesa-glx \
- {% endif %}
- libasound2-plugins libatomic1 curl && \
+ {% endif -%}
+ libasound2-plugins libatomic1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*