From 1c20bb01615c7692c178fe85582fd6c407e8b459 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 21 Jul 2022 18:20:46 +0300 Subject: [PATCH] Dockerfile: honor VERSION and REPO during make build buildx doesn't have complete .git at hand to detect them, so they're passed from the outside and should be used inside the Dockerfile. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d85508db2..814944743 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,12 +16,12 @@ WORKDIR /neo-go ARG REPO=repository ARG VERSION=dev -RUN make build +RUN VERSION=$VERSION REPO=$REPO make build # Executable image FROM alpine -ARG VERSION +ARG VERSION=dev LABEL version=$VERSION WORKDIR /