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.
This commit is contained in:
Roman Khimov 2022-07-21 18:20:46 +03:00
parent e11503ff5b
commit 1c20bb0161

View file

@ -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 /