Files
aliasvault/apps/server/Services/AliasVault.TaskRunner/Dockerfile
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

29 lines
995 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build
ARG TARGETARCH
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
# Copy all project files
COPY apps/server .
# Build and publish the application
WORKDIR "/src/Services/AliasVault.TaskRunner"
RUN dotnet publish "./AliasVault.TaskRunner.csproj" \
-c "$BUILD_CONFIGURATION" \
-a "$TARGETARCH" \
-o /app/publish \
/p:UseAppHost=false
FROM mcr.microsoft.com/dotnet/runtime:10.0-alpine 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 TaskRunner"
LABEL org.opencontainers.image.description="Background task runner for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)"
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "AliasVault.TaskRunner.dll"]