Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Add opencontainer labels to Dockerfile (#1179)

Leendert de Borst8797b3b360b7
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 936bf68aa..f84b93588 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -146,10 +146,6 @@ jobs:
# For branches, use branch name and branch name + short SHA for uniqueness
type=ref,event=branch,enable=${{ github.ref_type == 'branch' }}
type=raw,value={{branch}}-{{sha}},enable=${{ github.ref_type == 'branch' }}
- labels: |
- org.opencontainers.image.source=https://github.com/aliasvault/aliasvault
- org.opencontainers.image.vendor=AliasVault
- org.opencontainers.image.licenses=AGPL-3.0
- name: Generate tags for containers
id: tags
@@ -179,10 +175,7 @@ jobs:
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ${{ steps.tags.outputs.postgres }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault PostgreSQL
- org.opencontainers.image.description=PostgreSQL database for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ labels: ${{ steps.meta.outputs.labels }}
- name: Build and push API image
uses: docker/build-push-action@v5
@@ -192,10 +185,7 @@ jobs:
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ${{ steps.tags.outputs.api }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault API
- org.opencontainers.image.description=REST API backend for AliasVault password and email alias manager. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ labels: ${{ steps.meta.outputs.labels }}
- name: Build and push Client image
uses: docker/build-push-action@v5
@@ -205,10 +195,7 @@ jobs:
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ${{ steps.tags.outputs.client }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault Client
- org.opencontainers.image.description=Blazor WebAssembly client UI for AliasVault with end-to-end encryption. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ labels: ${{ steps.meta.outputs.labels }}
- name: Build and push Admin image
uses: docker/build-push-action@v5
@@ -218,10 +205,7 @@ jobs:
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ${{ steps.tags.outputs.admin }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault Admin
- org.opencontainers.image.description=Admin portal for AliasVault server management. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ labels: ${{ steps.meta.outputs.labels }}
- name: Build and push Reverse Proxy image
uses: docker/build-push-action@v5
@@ -231,10 +215,7 @@ jobs:
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ${{ steps.tags.outputs.reverse-proxy }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault Reverse Proxy
- org.opencontainers.image.description=Nginx reverse proxy for AliasVault multi-container deployment. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ labels: ${{ steps.meta.outputs.labels }}
- name: Build and push SMTP image
uses: docker/build-push-action@v5
@@ -244,10 +225,7 @@ jobs:
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ${{ steps.tags.outputs.smtp }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault SMTP Service
- org.opencontainers.image.description=SMTP service for email alias functionality in AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ labels: ${{ steps.meta.outputs.labels }}
- name: Build and push TaskRunner image
uses: docker/build-push-action@v5
@@ -257,10 +235,7 @@ jobs:
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ${{ steps.tags.outputs.task-runner }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault TaskRunner
- org.opencontainers.image.description=Background task runner for AliasVault operations. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)
+ labels: ${{ steps.meta.outputs.labels }}
- name: Build and push InstallCli image
uses: docker/build-push-action@v5
@@ -270,10 +245,7 @@ jobs:
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ${{ steps.tags.outputs.installcli }}
- labels: |
- ${{ steps.meta.outputs.labels }}
- org.opencontainers.image.title=AliasVault Install CLI
- 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
+ labels: ${{ steps.meta.outputs.labels }}
build-and-push-docker-all-in-one:
if: github.event_name == 'release' || inputs.build_all_in_one
@@ -322,12 +294,6 @@ jobs:
# For branches, use branch name and branch name + short SHA for uniqueness
type=ref,event=branch,enable=${{ github.ref_type == 'branch' }}
type=raw,value={{branch}}-{{sha}},enable=${{ github.ref_type == 'branch' }}
- labels: |
- org.opencontainers.image.source=https://github.com/aliasvault/aliasvault
- org.opencontainers.image.vendor=AliasVault
- org.opencontainers.image.licenses=AGPL-3.0
- org.opencontainers.image.title=AliasVault All-in-One
- org.opencontainers.image.description=Self-contained AliasVault server including web app, with all services bundled using s6-overlay. Single container solution for easy deployment (see docs.aliasvault.net).
- name: Build and push all-in-one image
uses: docker/build-push-action@v5
diff --git a/apps/server/AliasVault.Admin/Dockerfile b/apps/server/AliasVault.Admin/Dockerfile
index 2f1fdd9a1..030dd94fd 100644
--- a/apps/server/AliasVault.Admin/Dockerfile
+++ b/apps/server/AliasVault.Admin/Dockerfile
@@ -19,6 +19,14 @@ RUN dotnet publish "./AliasVault.Admin.csproj" \
/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 Admin"
+LABEL org.opencontainers.image.description="Admin portal for AliasVault server management. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)"
+
WORKDIR /app
COPY --from=build /app/publish .
diff --git a/apps/server/AliasVault.Api/Dockerfile b/apps/server/AliasVault.Api/Dockerfile
index c607395d5..4c3041e8a 100644
--- a/apps/server/AliasVault.Api/Dockerfile
+++ b/apps/server/AliasVault.Api/Dockerfile
@@ -16,6 +16,14 @@ RUN dotnet publish "./AliasVault.Api.csproj" \
# Final stage
FROM mcr.microsoft.com/dotnet/aspnet:9.0 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 API"
+LABEL org.opencontainers.image.description="REST API backend for AliasVault password and email alias manager. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)"
+
WORKDIR /app
COPY --from=build /app/publish .
diff --git a/apps/server/AliasVault.Client/Dockerfile b/apps/server/AliasVault.Client/Dockerfile
index 58e9b5e78..cd60b358b 100644
--- a/apps/server/AliasVault.Client/Dockerfile
+++ b/apps/server/AliasVault.Client/Dockerfile
@@ -42,6 +42,14 @@ RUN dotnet publish "AliasVault.Client.csproj" \
# Final stage
FROM nginx:1.24.0 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 Client"
+LABEL org.opencontainers.image.description="Blazor WebAssembly client UI for AliasVault with end-to-end encryption. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)"
+
WORKDIR /usr/share/nginx/html
COPY --from=publish /app/publish/wwwroot .
COPY /apps/server/AliasVault.Client/nginx.conf /etc/nginx/nginx.conf
diff --git a/apps/server/Databases/AliasServerDb/Dockerfile b/apps/server/Databases/AliasServerDb/Dockerfile
index 1007ccc36..a39ce6535 100644
--- a/apps/server/Databases/AliasServerDb/Dockerfile
+++ b/apps/server/Databases/AliasServerDb/Dockerfile
@@ -1,6 +1,13 @@
FROM postgres:16-alpine
-# Add any custom PostgreSQL configurations if needed
+# 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 PostgreSQL"
+LABEL org.opencontainers.image.description="PostgreSQL database for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)"
+
+# Add custom PostgreSQL configuration
COPY apps/server/Databases/AliasServerDb/postgresql.conf /etc/postgresql/postgresql.conf
# Define database name and username
diff --git a/apps/server/Dockerfile b/apps/server/Dockerfile
index 893be7be0..d538b9420 100644
--- a/apps/server/Dockerfile
+++ b/apps/server/Dockerfile
@@ -1,5 +1,12 @@
FROM nginx:alpine
+# 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 Reverse Proxy"
+LABEL org.opencontainers.image.description="Nginx reverse proxy for AliasVault multi-container deployment. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)"
+
# Install OpenSSL
RUN apk add --no-cache openssl
diff --git a/apps/server/Services/AliasVault.SmtpService/Dockerfile b/apps/server/Services/AliasVault.SmtpService/Dockerfile
index d6022b7db..df5e90e2b 100644
--- a/apps/server/Services/AliasVault.SmtpService/Dockerfile
+++ b/apps/server/Services/AliasVault.SmtpService/Dockerfile
@@ -17,6 +17,14 @@ RUN dotnet publish "./AliasVault.SmtpService.csproj" -c "$BUILD_CONFIGURATION" \
/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 SMTP Service"
+LABEL org.opencontainers.image.description="SMTP service for email alias functionality in 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.SmtpService.dll"]
diff --git a/apps/server/Services/AliasVault.TaskRunner/Dockerfile b/apps/server/Services/AliasVault.TaskRunner/Dockerfile
index bf89cbae3..f8f60524e 100644
--- a/apps/server/Services/AliasVault.TaskRunner/Dockerfile
+++ b/apps/server/Services/AliasVault.TaskRunner/Dockerfile
@@ -15,6 +15,14 @@ RUN dotnet publish "./AliasVault.TaskRunner.csproj" \
/p:UseAppHost=false
FROM mcr.microsoft.com/dotnet/runtime:9.0 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 operations. 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"]
diff --git a/apps/server/Utilities/AliasVault.InstallCli/Dockerfile b/apps/server/Utilities/AliasVault.InstallCli/Dockerfile
index 6fb1820a4..52e71dcc2 100644
--- a/apps/server/Utilities/AliasVault.InstallCli/Dockerfile
+++ b/apps/server/Utilities/AliasVault.InstallCli/Dockerfile
@@ -17,6 +17,14 @@ RUN dotnet publish "apps/server/Utilities/AliasVault.InstallCli/AliasVault.Insta
/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"]
diff --git a/dockerfiles/all-in-one/Dockerfile b/dockerfiles/all-in-one/Dockerfile
index b06f15966..fd5b28cca 100644
--- a/dockerfiles/all-in-one/Dockerfile
+++ b/dockerfiles/all-in-one/Dockerfile
@@ -53,6 +53,13 @@ RUN wget https://github.com/just-containers/s6-overlay/releases/download/v${S6_O
# ============================================
FROM mcr.microsoft.com/dotnet/aspnet:9.0-bookworm-slim
+# 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 All-in-One"
+LABEL org.opencontainers.image.description="Self-contained AliasVault server including web app, with all services bundled using s6-overlay. Single container solution for easy deployment (see docs.aliasvault.net)."
+
# Copy s6-overlay from downloader stage
COPY --from=s6-downloader /*.tar.xz /tmp/
diff --git a/docs/misc/release/publish-new-release/index.md b/docs/misc/release/publish-new-release/index.md
index b13188866..5efbb6491 100644
--- a/docs/misc/release/publish-new-release/index.md
+++ b/docs/misc/release/publish-new-release/index.md
@@ -69,11 +69,6 @@ docker buildx build --platform linux/amd64,linux/arm64/v8 \
-f dockerfiles/all-in-one/Dockerfile \
-t aliasvault/aliasvault:0.22.0 \
-t aliasvault/aliasvault:latest \
- --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 All-in-One" \
- --label "org.opencontainers.image.description=Self-contained AliasVault server including web app, with all services bundled using s6-overlay. Single container solution for easy deployment (see docs.aliasvault.net)." \
--push .
```
@@ -88,11 +83,6 @@ docker buildx build --platform linux/amd64,linux/arm64/v8 \
-f dockerfiles/all-in-one/Dockerfile \
-t ghcr.io/aliasvault/aliasvault:0.22.0 \
-t ghcr.io/aliasvault/aliasvault:latest \
- --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 All-in-One" \
- --label "org.opencontainers.image.description=Self-contained AliasVault server including web app, with all services bundled using s6-overlay. Single container solution for easy deployment (see docs.aliasvault.net)." \
--push .
```