From 9ad24a6e2f5c827c64397c653f92d170d5238cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erwan=20Herv=C3=A9?= Date: Fri, 22 May 2026 08:03:58 +0200 Subject: [PATCH 1/2] chore: add OCI standard labels to Dockerfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Erwan Hervé --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f6156626..4e9c525c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ FROM node:${NODE_VERSION}-${DEBIAN_VERSION} AS build # Set the container's default shell to Bash and enable some options SHELL ["/bin/bash", "-euo", "pipefail", "-c"] -# Install Chromium browser and Download and verify Google Chrome’s signing key +# Install Chromium browser and Download and verify Google Chrome's signing key RUN apt-get update -qq --fix-missing && \ apt-get -qqy install --allow-unauthenticated gnupg wget && \ wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \ @@ -60,5 +60,12 @@ ENV CHROME_PATH='/usr/bin/chromium' \ PUPPETEER_EXECUTABLE_PATH='/usr/bin/chromium' \ PUPPETEER_SKIP_DOWNLOAD='true' +LABEL org.opencontainers.image.title="Web-Check" \ + org.opencontainers.image.description="All-in-one OSINT tool for analysing any website" \ + org.opencontainers.image.url="https://web-check.xyz" \ + org.opencontainers.image.source="https://github.com/lissy93/web-check" \ + org.opencontainers.image.licenses="MIT" \ + org.opencontainers.image.vendor="Alicia Sykes" + # Define the command executed when the container starts and start the server.js of the Node.js application CMD ["yarn", "start"] From 91be6c26515c276e1944b134e2bd80b56bba789a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erwan=20Herv=C3=A9?= Date: Fri, 22 May 2026 08:03:59 +0200 Subject: [PATCH 2/2] ci: wire docker/metadata-action for dynamic OCI labels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Erwan Hervé --- .github/workflows/docker.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index fa950e2c..48997e77 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -51,6 +51,14 @@ jobs: - name: Set up Docker Buildx 🐳 uses: docker/setup-buildx-action@v4 + - name: Extract Docker metadata 🏷️ + id: meta + uses: docker/metadata-action@v5 + with: + images: | + ${{ env.GHCR_REGISTRY }}/${{ env.DOCKER_USER }}/${{ env.IMAGE_NAME }} + ${{ env.DOCKERHUB_REGISTRY }}/${{ env.DOCKER_USER }}/${{ env.IMAGE_NAME }} + - name: Login to GitHub Container Registry 🔑 uses: docker/login-action@v4 with: @@ -72,6 +80,7 @@ jobs: file: ./Dockerfile push: true platforms: linux/amd64,linux/arm64/v8 + labels: ${{ steps.meta.outputs.labels }} tags: | ${{ env.GHCR_TAG }} ${{ env.DOCKERHUB_TAG }}