mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-10-02 12:03:23 +00:00
fix(api): inline GIT_SHA from the image build arg
This commit is contained in:
parent
7e186e060b
commit
d96fb4fc18
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue