Files
Leendert de Borst 443a850ee1 Merge branch 'main' into 1353-upgrade-from-net-9-to-net-10-admin-api-and-web-app-services
* main: (100 commits)
  Update import flow to prevent UI reset and apply favicon reuse (#1583)
  Add SMTP TLS instructions to self-hosted docs
  Add install.sh restart [container] option (#1635)
  Improve browser extension autofill trigger to work on more websites (#1620)
  Fix Logo parsing in React Native to support string/base64 matching (#1622)
  Tweak iOS and Android password unlock flow to not let incorrect passwords overwrite persisted encryption key
  Tweak browser extension and mobile app unlock wrong password error
  Tweak TotpCodes add/close button style (#1629)
  Add StickyActionBar to web app in order to always show submit/cancel buttons in Item AddEdit.razor (#1629)
  Update all-in-one Docker container config to use 127.0.0.1 instead of localhost refernces (#1627)
  Add ignore_port option to Rust credential matcher for Android specifically (#1625)
  Update isntall docs and troubleshooting steps
  Move all error translations to common.errors.* in browser extension
  Add null checks to attachment viewer/uploader in web app to prevent exceptions
  Update docs (#112)
  Add AntiForgeryTokenMIddleware to admin to prevent HTTP 400 errors and instead do a clean redirect (#112)
  Add certificates dir bind mount to docker-compose for SMTP TLS (#112)
  Update SmtpServer with configurable certificates dir for Docker bind mount (#112)
  Add AppErrorCodes handling to mobile apps (#1619)
  Add AppErrorCodes handling to browser extension (#1619)
  ...
2026-02-06 12:23:11 +01:00

31 lines
1.0 KiB
Docker

FROM mcr.microsoft.com/dotnet/runtime:10.0-alpine AS base
WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build
ARG TARGETARCH
ARG BUILD_CONFIGURATION=Release
WORKDIR /apps/server
# Copy the entire source code
COPY . .
# Build and publish in one step
RUN dotnet publish "apps/server/Utilities/AliasVault.InstallCli/AliasVault.InstallCli.csproj" \
-c "$BUILD_CONFIGURATION" \
-a "$TARGETARCH" \
-o /app/publish \
/p:UseAppHost=false
FROM base AS final
# OCI Image Labels
LABEL org.opencontainers.image.source="https://github.com/aliasvault/aliasvault"
LABEL org.opencontainers.image.vendor="AliasVault"
LABEL org.opencontainers.image.licenses="AGPL-3.0"
LABEL org.opencontainers.image.title="AliasVault Install CLI"
LABEL org.opencontainers.image.description="Installation and configuration CLI for AliasVault. Used by install.sh for setup and configuration, not deployed as part of the application stack"
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "AliasVault.InstallCli.dll"]