From 0130d805547a1ff12006a8290d6d3a93a75290e5 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Sun, 25 Jan 2026 22:28:09 +0100 Subject: [PATCH] Add NPM to Docker build steps for AliasVault.Client JS bundler (#1493) --- apps/server/AliasVault.Client/Dockerfile | 9 +++++++-- dockerfiles/all-in-one/Dockerfile | 7 +++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/apps/server/AliasVault.Client/Dockerfile b/apps/server/AliasVault.Client/Dockerfile index 6d48a9ce3..d09401a79 100644 --- a/apps/server/AliasVault.Client/Dockerfile +++ b/apps/server/AliasVault.Client/Dockerfile @@ -39,8 +39,13 @@ WORKDIR /src # Create the debug directory RUN mkdir -p /src/msbuild-logs -# Install Python which is required by the WebAssembly tools -RUN apt-get update && apt-get install -y python3 && apt-get clean +# Install Python (required by WebAssembly tools) and Node.js (required by JS bundler) +RUN apt-get update && \ + apt-get install -y --no-install-recommends python3 curl ca-certificates && \ + curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ + apt-get install -y --no-install-recommends nodejs && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* # Install the WebAssembly tools with correct dotnet version auto-detected from apps/server folder. WORKDIR /src/apps/server diff --git a/dockerfiles/all-in-one/Dockerfile b/dockerfiles/all-in-one/Dockerfile index a683ef06c..d8199f390 100644 --- a/dockerfiles/all-in-one/Dockerfile +++ b/dockerfiles/all-in-one/Dockerfile @@ -30,9 +30,12 @@ RUN cd ./core && \ # ============================================ FROM mcr.microsoft.com/dotnet/sdk:9.0 AS dotnet-builder -# Install Python (required for WASM compilation) +# Install Python (required for WASM compilation) and Node.js (required by JS bundler) RUN apt-get update && \ - apt-get install -y --no-install-recommends python3 python3-pip && \ + apt-get install -y --no-install-recommends python3 python3-pip curl ca-certificates && \ + curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ + apt-get install -y --no-install-recommends nodejs && \ + apt-get clean && \ rm -rf /var/lib/apt/lists/* WORKDIR /src