forked from TrueCloudLab/neoneo-go
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 REPO=repository
|
||||||
ARG VERSION=dev
|
ARG VERSION=dev
|
||||||
|
|
||||||
RUN make build
|
RUN VERSION=$VERSION REPO=$REPO make build
|
||||||
|
|
||||||
# Executable image
|
# Executable image
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
ARG VERSION
|
ARG VERSION=dev
|
||||||
LABEL version=$VERSION
|
LABEL version=$VERSION
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
Loading…
Reference in a new issue