From 112cf14e24535bc73deb22cb2a330cfa598ce578 Mon Sep 17 00:00:00 2001 From: "aravind.est" Date: Mon, 17 Nov 2025 10:40:51 +0000 Subject: [PATCH] Migrate java base image to amazoncorretto:17.0.17 base image replaced with amazoncorretto:17.0.17 Issue-ID: NONRTRIC-1096 Change-Id: I658a59dfd02d7d894cd13115c5b38f7e5d0e8653 Signed-off-by: aravind.est (cherry picked from commit c680638ef03aa2990e166d80b32d10f1a0d3dd6c) --- Dockerfile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 85fb0a7..e44709b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # # ============LICENSE_START======================================================= # Copyright (C) 2020-2023 Nordix Foundation. -# Coptyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved. +# Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,7 +18,8 @@ # SPDX-License-Identifier: Apache-2.0 # ============LICENSE_END========================================================= # -FROM openjdk:17-jdk AS jre-build +FROM nexus3.o-ran-sc.org:10001/amazoncorretto:17.0.17 AS jre-build +RUN yum install -y binutils RUN "$JAVA_HOME"/bin/jlink \ --verbose \ @@ -29,9 +30,8 @@ RUN "$JAVA_HOME"/bin/jlink \ --compress=2 \ --output /customjre -# Use debian base image (same as openjdk uses) -FROM debian:11-slim - +# Use debian base image +FROM nexus3.o-ran-sc.org:10001/debian:11-slim ENV JAVA_HOME=/jre ENV PATH="${JAVA_HOME}/bin:${PATH}" @@ -64,7 +64,3 @@ RUN groupadd "$user" && \ USER ${user} CMD ["/jre/bin/java", "-jar", "/opt/app/information-coordinator-service/information-coordinator-service.jar"] - - - - -- 2.16.6