base image replaced with amazoncorretto:17.0.17
Issue-ID: NONRTRIC-1096
Change-Id: I658a59dfd02d7d894cd13115c5b38f7e5d0e8653
Signed-off-by: aravind.est <aravindhan.a@est.tech>
#
# ============LICENSE_START=======================================================
# Copyright (C) 2020-2023 Nordix Foundation.
#
# ============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.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
#
# 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 \
RUN "$JAVA_HOME"/bin/jlink \
--verbose \
--compress=2 \
--output /customjre
--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}"
ENV JAVA_HOME=/jre
ENV PATH="${JAVA_HOME}/bin:${PATH}"
USER ${user}
CMD ["/jre/bin/java", "-jar", "/opt/app/information-coordinator-service/information-coordinator-service.jar"]
USER ${user}
CMD ["/jre/bin/java", "-jar", "/opt/app/information-coordinator-service/information-coordinator-service.jar"]