π OpenHands: AI-Driven Development
Update dockerfile to remove vulnerabilities in Debian 12 (#7630)
Ray Myers0045d46d9d7c
diff --git a/openhands/runtime/utils/runtime_templates/Dockerfile.j2 b/openhands/runtime/utils/runtime_templates/Dockerfile.j2index f7b95cde4a..cca287b911 100644--- a/openhands/runtime/utils/runtime_templates/Dockerfile.j2+++ b/openhands/runtime/utils/runtime_templates/Dockerfile.j2@@ -14,6 +14,7 @@ ENV POETRY_VIRTUALENVS_PATH=/openhands/poetry \# Install base system dependenciesRUN apt-get update && \+ apt-get upgrade -y && \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')) -%}@@ -22,6 +23,10 @@ RUN apt-get update && \libgl1-mesa-glx \{% endif -%}libasound2-plugins libatomic1 && \+ # Remove packages with CVEs and no updates yet, if present+ (apt-get remove -y libaom3 || true) && \+ (apt-get remove -y libjxl0.7 || true) && \+ (apt-get remove -y libopenexr-3-1-30 || true) && \apt-get clean && \rm -rf /var/lib/apt/lists/*