[build] evmtool Dockerfile - update apt-get packages (#8321)

* update ca-certificates-java version

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

* removed ca-certificates install; add adduser

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
This commit is contained in:
Sally MacFarlane
2025-02-18 21:30:02 +10:00
committed by GitHub
parent 0db6ebc4d7
commit 1cbdcdb01d

View File

@@ -7,9 +7,7 @@ ENV NO_PROXY_CACHE="-o Acquire::BrokenProxy=true -o Acquire::http::No-Cache=true
RUN apt-get update $NO_PROXY_CACHE && \
# $NO_PROXY_CACHE must not be used here or otherwise will trigger a hadolint error
apt-get -o Acquire::BrokenProxy=true -o Acquire::http::No-Cache=true -o Acquire::http::Pipeline-Depth=0 \
--no-install-recommends -q --assume-yes install ca-certificates-java=20190909* && \
apt-get -o Acquire::BrokenProxy=true -o Acquire::http::No-Cache=true -o Acquire::http::Pipeline-Depth=0 \
--no-install-recommends -q --assume-yes install openjdk-21-jre-headless=21* && \
--no-install-recommends -q --assume-yes install openjdk-21-jre-headless=21* adduser=3* && \
# Clean apt cache \
apt-get clean && \
rm -rf /var/cache/apt/archives/* /var/cache/apt/archives/partial/* && \