Merge pull request 'Add labels to dockerfile' (#26) from push-myxswzloqwvr into main
All checks were successful
Build and Push Docker Image / build (push) Successful in 28m5s

Reviewed-on: #26
This commit was merged in pull request #26.
This commit is contained in:
2025-12-26 23:22:53 +01:00
2 changed files with 10 additions and 1 deletions

View File

@@ -72,6 +72,15 @@ RUN strip /build/target/release/PMOMusic
# =================================== # ===================================
FROM debian:bookworm-slim 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 # Install only runtime dependencies
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
libsoxr0 \ libsoxr0 \

View File

@@ -89,7 +89,7 @@ if [ "$NO_CACHE" = true ]; then
DOCKER_CMD="$DOCKER_CMD --no-cache" DOCKER_CMD="$DOCKER_CMD --no-cache"
fi 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 # Exécuter le build
echo -e "${YELLOW}→ Démarrage du build...${NC}" echo -e "${YELLOW}→ Démarrage du build...${NC}"