Skip to content

feat: add OCI image labels to all Dockerfiles#113

Merged
jorge07 merged 1 commit intojorge07:masterfrom
josecarlospeer-cloud:feat/oci-labels
Feb 22, 2026
Merged

feat: add OCI image labels to all Dockerfiles#113
jorge07 merged 1 commit intojorge07:masterfrom
josecarlospeer-cloud:feat/oci-labels

Conversation

@josecarlospeer-cloud
Copy link
Contributor

Closes #101 (OCI labels item)

What

Replaces the bare LABEL maintainer=... with the standard org.opencontainers.image.* label set across all PHP versions.

Labels added

Label Value
authors Jorge Arco <jorge.arcoma@gmail.com>
source https://github.com/jorge07/alpine-php
title jorge07/alpine-php
description Lightweight PHP-FPM Docker images based on Alpine Linux
licenses Apache-2.0
url https://hub.docker.com/r/jorge07/alpine-php
created build-time (via BUILD_DATE ARG)
revision build-time (via VCS_REF ARG)

Makefile

Added OCI_LABELS variable that computes BUILD_DATE and VCS_REF from the current date and git SHA, and passes them as --build-arg to all build and release targets.

Verification

$ docker inspect jorge07/alpine-php:8.3-oci-test --format '{{json .Config.Labels}}'
{
    "org.opencontainers.image.authors": "Jorge Arco <jorge.arcoma@gmail.com>",
    "org.opencontainers.image.created": "2026-02-22T08:30:09Z",
    "org.opencontainers.image.description": "Lightweight PHP-FPM Docker images based on Alpine Linux",
    "org.opencontainers.image.licenses": "Apache-2.0",
    "org.opencontainers.image.revision": "b7ac062",
    "org.opencontainers.image.source": "https://github.com/jorge07/alpine-php",
    "org.opencontainers.image.title": "jorge07/alpine-php",
    "org.opencontainers.image.url": "https://hub.docker.com/r/jorge07/alpine-php"
}  ✅

Replaces the bare 'maintainer' LABEL with standard org.opencontainers.image.*
labels across all four PHP versions (8.1, 8.2, 8.3, 8.4).

Labels added:
  authors      — Jorge Arco <jorge.arcoma@gmail.com>
  source       — https://github.com/jorge07/alpine-php
  title        — jorge07/alpine-php
  description  — Lightweight PHP-FPM Docker images based on Alpine Linux
  licenses     — Apache-2.0
  url          — https://hub.docker.com/r/jorge07/alpine-php
  created      — populated via BUILD_DATE ARG at build time
  revision     — populated via VCS_REF ARG at build time

Makefile updated: OCI_LABELS variable computes BUILD_DATE and VCS_REF
from current date/git SHA and passes them as --build-arg to all build
and release targets.

Build-tested locally (8.3): all 8 labels confirmed in docker inspect.

Closes jorge07#101 (OCI labels item)
@jorge07 jorge07 merged commit a8b341c into jorge07:master Feb 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Phase 2: Add PHP 8.4 + fix Alpine base images

2 participants