Skip to content

Commit 61b6ffb

Browse files
authored
Merge pull request #309 from Erwan-loot/chore/add-oci-labels
chore: add OCI standard labels to Dockerfile
2 parents fd2a7cd + 91be6c2 commit 61b6ffb

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ jobs:
5151
- name: Set up Docker Buildx 🐳
5252
uses: docker/setup-buildx-action@v4
5353

54+
- name: Extract Docker metadata 🏷️
55+
id: meta
56+
uses: docker/metadata-action@v5
57+
with:
58+
images: |
59+
${{ env.GHCR_REGISTRY }}/${{ env.DOCKER_USER }}/${{ env.IMAGE_NAME }}
60+
${{ env.DOCKERHUB_REGISTRY }}/${{ env.DOCKER_USER }}/${{ env.IMAGE_NAME }}
61+
5462
- name: Login to GitHub Container Registry 🔑
5563
uses: docker/login-action@v4
5664
with:
@@ -72,6 +80,7 @@ jobs:
7280
file: ./Dockerfile
7381
push: true
7482
platforms: linux/amd64,linux/arm64/v8
83+
labels: ${{ steps.meta.outputs.labels }}
7584
tags: |
7685
${{ env.GHCR_TAG }}
7786
${{ env.DOCKERHUB_TAG }}

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FROM node:${NODE_VERSION}-${DEBIAN_VERSION} AS build
1010
# Set the container's default shell to Bash and enable some options
1111
SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
1212

13-
# Install Chromium browser and Download and verify Google Chromes signing key
13+
# Install Chromium browser and Download and verify Google Chrome's signing key
1414
RUN apt-get update -qq --fix-missing && \
1515
apt-get -qqy install --allow-unauthenticated gnupg wget && \
1616
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' \
6060
PUPPETEER_EXECUTABLE_PATH='/usr/bin/chromium' \
6161
PUPPETEER_SKIP_DOWNLOAD='true'
6262

63+
LABEL org.opencontainers.image.title="Web-Check" \
64+
org.opencontainers.image.description="All-in-one OSINT tool for analysing any website" \
65+
org.opencontainers.image.url="https://web-check.xyz" \
66+
org.opencontainers.image.source="https://github.com/lissy93/web-check" \
67+
org.opencontainers.image.licenses="MIT" \
68+
org.opencontainers.image.vendor="Alicia Sykes"
69+
6370
# Define the command executed when the container starts and start the server.js of the Node.js application
6471
CMD ["yarn", "start"]

0 commit comments

Comments
 (0)