From 2bfb7fe01080a4ed0ce7693852dcbb996bcc11df Mon Sep 17 00:00:00 2001 From: Suren K Date: Wed, 1 Oct 2025 15:43:41 -0500 Subject: [PATCH] fix: Remove yarn installation as it's already available in Node.js image - Remove yarn installation since it's pre-installed in node:18-slim - Only install Angular CLI which is not available by default - Fix EEXIST error caused by trying to install existing yarn - Simplify Dockerfile by using pre-installed tools --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 31aa7ca9..acc40bf5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,8 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -# Install Yarn and Angular CLI globally -RUN npm install -g --unsafe-perm yarn@latest && \ - npm install -g --unsafe-perm @angular/cli@latest +# Install Angular CLI globally (Yarn is already available in Node.js image) +RUN npm install -g --unsafe-perm @angular/cli@latest # Copy Maven files first for better caching COPY examples/basicauthentication/pom.xml /app/pom.xml