.git in .dockerignore - Build an EE Metabase Uberjar in a containerized environment fails with fatal: not a git repository (or any of the parent directories): .git
Author: likeshumidityCreated Sep 28, 2026Updated Sep 28, 2026
LabelsType:BugPriority:P2.Needs Triage.Run Repro Bot
Describe the bug
Instructions here fail when using:
docker build --no-cache --pull --build-arg VERSION=v0.63.18 --build-arg MB_EDITION=ee -t <build-target> .Does not fail for MB_EDITION=oss
.gitis in.dockerignoreso build can't find git repo and fails atgit rev-parse --abbrev-ref HEADattempt
To Reproduce
- Edit Dockerfile from
FROM node:22-bullseye AS buildertoFROM node:22-bookworm AS builderre: https://github.com/metabase/metabase/issues/83152 - Run:
docker build --no-cache --pull --build-arg VERSION=v0.63.18 --build-arg MB_EDITION=ee -t <build-target> .Expected behavior
Expect EE docker build in a container instructions to work like the OSS instructions do.
Logs
#16 194.3 fatal: not a git repository (or any of the parent directories): .git
#16 194.9 [rspack] CLI failed:
#16 194.9 Error: Command failed: git rev-parse --abbrev-ref HEAD
#16 194.9 fatal: not a git repository (or any of the parent directories): .git
#16 194.9 at Object.execSync (node:child_process:988:15)
#16 194.9 at module.exports.getBuildInfoValues (/home/node/frontend/build/embedding-sdk/rspack/get-build-info-values.js:4:6)
#16 194.9 at /home/node/rspack.embedding-sdk-bundle.config.js:249:8
#16 194.9 at /home/node/rspack.config.js:13:18
#16 194.9 status: 128,
#16 194.9 error: script "build-release:js" exited with code 1
#16 194.9 error: script "build-release" exited with code 1
#16 194.9 Step failed: Running build steps for Enterprise Edition version v0.63.18: version, translations, frontend, licenses, python, uberjar
Dockerfile:35
35 | >>> RUN INTERACTIVE=false CI=true MB_EDITION=$MB_EDITION bin/build.sh :version ${VERSION}
ERROR: failed to build: failed to solve: process "/bin/sh -c INTERACTIVE=false CI=true MB_EDITION=$MB_EDITION bin/build.sh :version ${VERSION}" did not complete successfully: exit code: 255Information about your Metabase installation
v1.63.18Severity
P2: non-blocking, but delivered code doesn't run with published instructions
Additional context
related to:
- https://github.com/metabase/metabase/issues/83152 (encounter that issue first before this one)
Source: metabase/metabase