#
# ============LICENSE_START=======================================================
-# Copyright (C) 2021 Nordix Foundation.
+# Copyright (C) 2021-2023 Nordix Foundation.
+# 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.
# 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 \
--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}"
# ============LICENSE_START===============================================
-# Copyright (C) 2020 Nordix Foundation. All rights reserved.
+# Copyright (C) 2020-2023 Nordix Foundation. 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.
# ============LICENSE_END=================================================
#
### STAGE 1: Build App ###
-FROM node:14-alpine AS stage1
+FROM nexus3.o-ran-sc.org:10001/node:14-alpine AS stage1
WORKDIR /usr/src/app
COPY package.json ./
RUN npm install
RUN npm run-script build:prod
### STAGE 2: Run App ###
-FROM nginx:alpine
+FROM nexus3.o-ran-sc.org:10001/nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf
## use build-in nginx user