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