From d33c7523c970a26be57a18cf9bfa308b11e87680 Mon Sep 17 00:00:00 2001
From: Cam Saul <1455846+camsaul@users.noreply.github.com>
Date: Fri, 14 May 2021 11:45:45 -0700
Subject: [PATCH] Fix multi-stage Dockerfile used by head images not building
 version info (#16052)

---
 Dockerfile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 70522969122..4c1983d9d32 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -60,13 +60,13 @@ COPY --from=drivers /root/.m2/repository/. /root/.m2/repository/.
 COPY --from=drivers /app/source/. .
 
 # build the app
-RUN INTERACTIVE=false MB_EDITION=$MB_EDITION bin/build uberjar
+RUN INTERACTIVE=false MB_EDITION=$MB_EDITION bin/build version uberjar
 
 # ###################
 # # STAGE 2: runner
 # ###################
 
-## Remember that this runner image needs to be the same as bin/docker/Dockerfile with the exception that this one grabs the 
+## Remember that this runner image needs to be the same as bin/docker/Dockerfile with the exception that this one grabs the
 ## jar from the previous stage rather than the local build
 
 FROM adoptopenjdk/openjdk11:alpine-jre as runner
@@ -90,4 +90,4 @@ COPY bin/docker/run_metabase.sh /app/
 EXPOSE 3000
 
 # run it
-ENTRYPOINT ["/app/run_metabase.sh"]
\ No newline at end of file
+ENTRYPOINT ["/app/run_metabase.sh"]
-- 
GitLab