From 8b785ff165687b37e5d6d3b91a787787334d41cd Mon Sep 17 00:00:00 2001 From: anuruddhal Date: Fri, 9 Aug 2024 11:11:51 +0530 Subject: [PATCH] Fix vulnerabilities in jvm runtime Docker image --- docker-images/base-image/Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-images/base-image/Dockerfile b/docker-images/base-image/Dockerfile index 26e26e16..c60f5c2e 100644 --- a/docker-images/base-image/Dockerfile +++ b/docker-images/base-image/Dockerfile @@ -12,22 +12,22 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM alpine:3.17.6 +FROM alpine:3.18.8 ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' # fontconfig and ttf-dejavu added to support serverside image generation by Java programs -RUN apk add --no-cache fontconfig libretls musl-locales musl-locales-lang ttf-dejavu tzdata zlib libc6-compat gcompat\ +RUN apk upgrade --no-cache && apk add --no-cache fontconfig libretls musl-locales musl-locales-lang ttf-dejavu tzdata zlib libc6-compat gcompat\ && rm -rf /var/cache/apk/* -ENV JAVA_VERSION jdk-17.0.7+7 +ENV JAVA_VERSION jdk-17.0.9+9 RUN set -eux; \ ARCH="$(apk --print-arch)"; \ case "${ARCH}" in \ amd64|x86_64) \ - ESUM='711f837bacf8222dee9e8cd7f39941a4a0acf869243f03e6038ca3ba189f66ca'; \ - BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.7%2B7/OpenJDK17U-jre_x64_alpine-linux_hotspot_17.0.7_7.tar.gz'; \ + ESUM='70e5d108f51ae7c7b2435d063652df058723e303a18b4f72f17f75c5320052d3'; \ + BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jre_x64_alpine-linux_hotspot_17.0.9_9.tar.gz'; \ ;; \ *) \ echo "Unsupported arch: ${ARCH}"; \ @@ -50,4 +50,4 @@ ENV LD_PRELOAD=/lib/libgcompat.so.0 ENV JAVA_HOME=/opt/java/openjdk \ PATH="/opt/java/openjdk/bin:$PATH" -RUN java --version +RUN java --version \ No newline at end of file