|
|
@ -5,8 +5,11 @@ ENV NO_PROXY_CACHE="-o Acquire::BrokenProxy=true -o Acquire::http::No-Cache=true |
|
|
|
|
|
|
|
|
|
|
|
# Update and install dependencies without using any cache |
|
|
|
# Update and install dependencies without using any cache |
|
|
|
RUN apt-get update $NO_PROXY_CACHE && \ |
|
|
|
RUN apt-get update $NO_PROXY_CACHE && \ |
|
|
|
apt-get install $NO_PROXY_CACHE --no-install-recommends -q --assume-yes ca-certificates-java=20190909* && \ |
|
|
|
# $NO_PROXY_CACHE must not be used here or otherwise will trigger a hadolint error |
|
|
|
apt-get install $NO_PROXY_CACHE --no-install-recommends -q --assume-yes openjdk-17-jre-headless=17* && \ |
|
|
|
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-17-jre-headless=17* && \ |
|
|
|
# Clean apt cache \ |
|
|
|
# Clean apt cache \ |
|
|
|
apt-get clean && \ |
|
|
|
apt-get clean && \ |
|
|
|
rm -rf /var/cache/apt/archives/* /var/cache/apt/archives/partial/* && \ |
|
|
|
rm -rf /var/cache/apt/archives/* /var/cache/apt/archives/partial/* && \ |
|
|
|