From b9065ad8d2f55a30ab1b138578dec2a6c006553f Mon Sep 17 00:00:00 2001 From: Piumal Rathnayake Date: Thu, 12 Mar 2026 23:31:42 +0530 Subject: [PATCH 1/2] Refactor Dockerfile to use default-jre-headless --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1903634b0..32c997436 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ wget \ bash \ coreutils \ - default-jre \ + default-jre-headless \ && rm -rf /var/lib/apt/lists/* # Verify the installed wget version From 7549e3db5ef2d5c4bb140d683f8557d9f821446d Mon Sep 17 00:00:00 2001 From: Piumal Rathnayake Date: Thu, 12 Mar 2026 23:32:17 +0530 Subject: [PATCH 2/2] Remove unnecessary commands from Dockerfile --- Dockerfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 32c997436..9100c1e23 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,9 +12,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ default-jre-headless \ && rm -rf /var/lib/apt/lists/* -# Verify the installed wget version -RUN wget --version - # Set the working directory inside the container WORKDIR /app @@ -23,9 +20,7 @@ COPY package*.json ./ COPY openapitools.json ./ # Install dependencies using npm ci for faster, cleaner installations in production -RUN npm ci --only=production --ignore-scripts - -RUN npx @openapitools/openapi-generator-cli@2.21.3 version +RUN npm ci --only=production --ignore-scripts && npm cache clean --force # Copy the rest of the application files COPY . .