From b6bae93fcc66a684c684f217b70edd56c76efe14 Mon Sep 17 00:00:00 2001 From: Nuckal777 Date: Thu, 28 Sep 2023 15:11:28 +0200 Subject: [PATCH] Add VERSION arg to Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bd9926e..a07be19 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,8 @@ FROM golang:1.21 as builder ENV GOTOOLCHAIN=local WORKDIR /workspace COPY . . -RUN go mod vendor && make all +ARG VERSION +RUN go mod vendor && VERSION=${VERSION} make all FROM gcr.io/distroless/static:nonroot LABEL source_repository="https://github.com/sapcc/vpa_butler"