From d96fb4fc180d75bd53fa8f59a5c743248f57ee00 Mon Sep 17 00:00:00 2001 From: Adam Moussa Date: Tue, 22 Sep 2026 13:52:58 -0400 Subject: [PATCH] fix(api): inline GIT_SHA from the image build arg --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6909726..6021cae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ COPY packages/shared packages/shared COPY packages/api packages/api RUN npm run build:shared && npm run build -w @seahaven-ap/api ARG GIT_SHA=unknown -RUN node -e "require('node:fs').writeFileSync('packages/api/dist/build-info.js', 'export const BUILD_GIT_SHA = ' + JSON.stringify(process.argv[1]) + ';\\n')" "$GIT_SHA" +RUN GIT_SHA="$GIT_SHA" node -e "require('node:fs').writeFileSync('packages/api/dist/build-info.js', 'export const BUILD_GIT_SHA = ' + JSON.stringify(process.env.GIT_SHA || 'unknown') + ';\\n')" FROM node:24-alpine@sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1 RUN addgroup -S app && adduser -S -G app app