diff --git a/Dockerfile b/Dockerfile index 5ad73435..706f4da9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -72,6 +72,15 @@ RUN strip /build/target/release/PMOMusic # =================================== FROM debian:bookworm-slim +ARG BUILD_DATE +LABEL org.opencontainers.image.created=$BUILD_DATE +LABEL org.opencontainers.image.title="PMOMusic UPNP Music Server" +LABEL org.opencontainers.image.version="0.1" +LABEL org.opencontainers.image.authors="eric@coissac.eu" +LABEL org.opencontainers.image.licenses="CeCILL-2.0" +LABEL org.opencontainers.image.url="https://gargoton.petite-maison-orange.fr/eric/pmomusic" +LABEL org.opencontainers.image.description="PMOMusic est une application Rust proposant en un binaire unique une Serveur de Musique, et une point de controle UPNP controlable via une application web." + # Install only runtime dependencies RUN apt-get update && apt-get install -y \ libsoxr0 \ diff --git a/docker-build.sh b/docker-build.sh index 0defdf19..acfd5041 100755 --- a/docker-build.sh +++ b/docker-build.sh @@ -89,7 +89,7 @@ if [ "$NO_CACHE" = true ]; then DOCKER_CMD="$DOCKER_CMD --no-cache" fi -DOCKER_CMD="$DOCKER_CMD -t $FULL_IMAGE_NAME ." +DOCKER_CMD="$DOCKER_CMD --build-arg BUILD_DATE=\"$(date -u +'%Y-%m-%dT%H:%M:%SZ')\" -t $FULL_IMAGE_NAME ." # Exécuter le build echo -e "${YELLOW}→ Démarrage du build...${NC}"