Add NPM to Docker build steps for AliasVault.Client JS bundler (#1493)

This commit is contained in:
Leendert de Borst
2026-01-26 14:48:07 +00:00
committed by Leendert de Borst
parent ad19256d00
commit 0130d80554
2 changed files with 12 additions and 4 deletions
+7 -2
View File
@@ -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
+5 -2
View File
@@ -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