From 358920868ecb5e7b72f63dc325e46b33eb74fad4 Mon Sep 17 00:00:00 2001 From: Luis Paolini <paoliniluis@gmail.com> Date: Tue, 5 Dec 2023 12:39:08 -0300 Subject: [PATCH] Add Metabase version argument to Dockerfile (#36402) * Add version to Dockerfile When you want to build with a specific version, you need to pass it on the build args * Update Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 270c986df6b..612c021a994 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ FROM node:18-bullseye as builder ARG MB_EDITION=oss +ARG VERSION WORKDIR /home/node @@ -18,7 +19,7 @@ COPY . . # version is pulled from git, but git doesn't trust the directory due to different owners RUN git config --global --add safe.directory /home/node -RUN INTERACTIVE=false CI=true MB_EDITION=$MB_EDITION bin/build.sh +RUN INTERACTIVE=false CI=true MB_EDITION=$MB_EDITION bin/build.sh :version ${VERSION} # ################### # # STAGE 2: runner -- GitLab