From f47146583ec44622b48c472f23aaba0ed4aff9a1 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Thu, 7 Sep 2023 13:36:54 +0200 Subject: [PATCH] moved the final label to the very bottom, since they will always change --- dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dockerfile b/dockerfile index 9f9a965..0f4b951 100644 --- a/dockerfile +++ b/dockerfile @@ -14,10 +14,6 @@ org.opencontainers.image.title=buildimage \ org.opencontainers.image.source="https://git.schmidl.dev/schtobia/buildimage" \ org.opencontainers.image.url="https://git.schmidl.dev/schtobia/buildimage" -LABEL org.opencontainers.image.revision=${GIT_COMMIT} -LABEL org.opencontainers.image.version=${VERSION} -LABEL org.opencontainers.image.created=${TIMESTAMP} - RUN apt update \ && apt install --assume-yes --no-install-recommends \ build-essential \ @@ -30,3 +26,7 @@ RUN useradd -rm builder USER builder WORKDIR /workdir + +LABEL org.opencontainers.image.revision=${GIT_COMMIT} +LABEL org.opencontainers.image.version=${VERSION} +LABEL org.opencontainers.image.created=${TIMESTAMP}