Update all-in-one Dockerfile (#1731)

This commit is contained in:
Leendert de Borst
2026-02-18 20:28:30 +01:00
parent a5cb9c4050
commit 455ace7804
2 changed files with 8 additions and 2 deletions

View File

@@ -35,4 +35,7 @@ certificates/
# Exclude development files
*.log
*.env
*.env.*
*.env.*
# Exclude local built web app index.html, must be generated fresh during Docker build for correct fingerprinting
apps/server/AliasVault.Client/wwwroot/index.html

View File

@@ -75,7 +75,10 @@ RUN dotnet publish AliasVault.Api/AliasVault.Api.csproj \
-c Release -o /app/api --no-restore
# Build Client (contains WASM which can be slow)
RUN dotnet publish AliasVault.Client/AliasVault.Client.csproj \
# Note: Must run build first before publish, to trigger index.html generation for correct fingerprinting
RUN dotnet build AliasVault.Client/AliasVault.Client.csproj \
-c Release --no-restore && \
dotnet publish AliasVault.Client/AliasVault.Client.csproj \
-c Release -o /app/client --no-restore
# Build Admin