From 5aafe786d82555b8d3165cfdcb89ec1fb01347f4 Mon Sep 17 00:00:00 2001 From: Suren K Date: Wed, 1 Oct 2025 16:45:42 -0500 Subject: [PATCH] fix: Install Node.js to support Maven frontend build - Add Node.js 18.x installation via NodeSource repository - Install curl for downloading NodeSource setup script - Required for Maven exec plugin to run npm/npx commands - Supports both Java backend and Angular frontend build - Resolves 'Cannot run program npm' error --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5907caa8..8d14a9cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,11 @@ FROM eclipse-temurin:17-jre # Set working directory WORKDIR /app -# Install Maven for building +# Install Maven and Node.js for building RUN apt-get update && \ - apt-get install -y maven && \ + apt-get install -y maven curl && \ + curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \ + apt-get install -y nodejs && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*