Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update Dockerfile (#190)
Leendert de Borstd9f4f8d12198
diff --git a/src/AliasVault.Client/Dockerfile b/src/AliasVault.Client/Dockerfileindex 3a795238b..55b0ff172 100644--- a/src/AliasVault.Client/Dockerfile+++ b/src/AliasVault.Client/Dockerfile@@ -1,33 +1,49 @@FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS baseWORKDIR /app-FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build+FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0 AS build+ARG TARGETARCHARG BUILD_CONFIGURATION=ReleaseENV DOTNET_CLI_TELEMETRY_OPTOUT=1ENV MSBUILDDEBUGPATH=/src/msbuild-logs-WORKDIR /src+WORKDIR /source-# Create the debug directory and install Python which is required by the WebAssembly tools-RUN mkdir -p /src/msbuild-logs && apt-get update && apt-get install -y python3 && apt-get clean+# Install Python which is required by the WebAssembly tools+RUN apt-get update && apt-get install -y python3 && apt-get clean# Install the WebAssembly toolsRUN dotnet workload install wasm-tools-# Copy the project files and restore dependencies+# Copy all project files firstCOPY ["src/AliasVault.Client/AliasVault.Client.csproj", "src/AliasVault.Client/"]-RUN dotnet restore "src/AliasVault.Client/AliasVault.Client.csproj"+COPY ["src/Databases/AliasClientDb/AliasClientDb.csproj", "src/Databases/AliasClientDb/"]+COPY ["src/Utilities/Cryptography/AliasVault.Cryptography.Client/AliasVault.Cryptography.Client.csproj", "src/Utilities/Cryptography/AliasVault.Cryptography.Client/"]+COPY ["src/Utilities/AliasVault.FaviconExtractor/AliasVault.FaviconExtractor.csproj", "src/Utilities/AliasVault.FaviconExtractor/"]+COPY ["src/Generators/AliasVault.Generators.Identity/AliasVault.Generators.Identity.csproj", "src/Generators/AliasVault.Generators.Identity/"]+COPY ["src/Utilities/AliasVault.CsvImportExport/AliasVault.CsvImportExport.csproj", "src/Utilities/AliasVault.CsvImportExport/"]+COPY ["src/Shared/AliasVault.Shared/AliasVault.Shared.csproj", "src/Shared/AliasVault.Shared/"]+COPY ["src/Shared/AliasVault.Shared.Core/AliasVault.Shared.Core.csproj", "src/Shared/AliasVault.Shared.Core/"]+COPY ["src/Generators/AliasVault.Generators.Password/AliasVault.Generators.Password.csproj", "src/Generators/AliasVault.Generators.Password/"]+COPY ["src/Shared/AliasVault.RazorComponents/AliasVault.RazorComponents.csproj", "src/Shared/AliasVault.RazorComponents/"]++# Restore all packages+RUN dotnet restore "src/AliasVault.Client/AliasVault.Client.csproj" -a $TARGETARCH++# Copy everything else and buildCOPY . .--# Build and publish-WORKDIR "/src/src/AliasVault.Client"-RUN dotnet publish "AliasVault.Client.csproj" -c "$BUILD_CONFIGURATION" -o /app/publish /p:UseAppHost=false+RUN dotnet publish "src/AliasVault.Client/AliasVault.Client.csproj" \+ -a $TARGETARCH \+ -c "$BUILD_CONFIGURATION" \+ --no-restore \+ -o /app/publish \+ /p:UseAppHost=false# Final stage-FROM nginx:1.24.0 AS final+FROM nginx:1.24.0-alpineWORKDIR /usr/share/nginx/htmlCOPY --from=build /app/publish/wwwroot .-COPY /src/AliasVault.Client/nginx.conf /etc/nginx/nginx.conf-COPY /src/AliasVault.Client/entrypoint.sh /app/entrypoint.sh+COPY src/AliasVault.Client/nginx.conf /etc/nginx/nginx.conf+COPY src/AliasVault.Client/entrypoint.sh /app/entrypoint.shRUN chmod +x /app/entrypoint.sh