mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-06-21 02:13:34 +02:00
base: Optimize image build adding only image and vcs_url metatdata
To avoid dependent images to systematically rebuild, this commit adds only "static" metatdata to the base image
This commit is contained in:
@ -34,12 +34,10 @@ RUN apt-get update && apt-get -y install \
|
||||
#include "common.docker"
|
||||
|
||||
# Build-time metadata as defined at http://label-schema.org
|
||||
ARG BUILD_DATE
|
||||
# Note: To avoid systematic rebuild of dependent images, only
|
||||
# name and vcs-url are included.
|
||||
ARG IMAGE
|
||||
ARG VCS_REF
|
||||
ARG VCS_URL
|
||||
LABEL org.label-schema.build-date=$BUILD_DATE \
|
||||
org.label-schema.name=$IMAGE \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
LABEL org.label-schema.name=$IMAGE \
|
||||
org.label-schema.vcs-url=$VCS_URL \
|
||||
org.label-schema.schema-version="1.0"
|
||||
|
Reference in New Issue
Block a user