mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-22 19:19:09 +00:00
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:
parent
e11503ff5b
commit
1c20bb0161
1 changed files with 2 additions and 2 deletions
|
@ -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 /
|
||||
|
|
Loading…
Reference in a new issue