From 520ed3294cabfa4cefdfc06f4c37933f7fa2d773 Mon Sep 17 00:00:00 2001 From: "m.nabokikh" Date: Mon, 15 Jan 2024 20:37:37 +0100 Subject: [PATCH 1/2] Propagate Dex version from build args Signed-off-by: m.nabokikh --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d0751086..36283286 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,10 @@ RUN go mod download COPY . . -RUN make release-binary +# Propagate Dex version from build args to the build environment +ARG VERSION +RUN ([ "$VERSION" != "" ] || export $VERSION) && make release-binary + RUN xx-verify /go/bin/dex && xx-verify /go/bin/docker-entrypoint FROM alpine:3.19.0 AS stager From adde14ba41d2a0d28f478eecea8a08bd8a0446cb Mon Sep 17 00:00:00 2001 From: Maksim Nabokikh Date: Tue, 16 Jan 2024 22:58:54 +0100 Subject: [PATCH 2/2] Remove the expose call Signed-off-by: Maksim Nabokikh --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 36283286..26d9062f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ COPY . . # Propagate Dex version from build args to the build environment ARG VERSION -RUN ([ "$VERSION" != "" ] || export $VERSION) && make release-binary +RUN make release-binary RUN xx-verify /go/bin/dex && xx-verify /go/bin/docker-entrypoint