Skip to content

Commit ba9715c

Browse files
committed
fix: make sure frontend build info extraction
1 parent fb8f2bf commit ba9715c

File tree

4 files changed

+7
-36
lines changed

4 files changed

+7
-36
lines changed

docker-compose.dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ services:
8787
build:
8888
context: .
8989
dockerfile: docker/frontend.Dockerfile
90-
target: development
90+
target: production
9191
args:
9292
- BACKEND_URL=${BACKEND_URL}
9393
- GIT_BRANCH=${GIT_BRANCH}

docker/frontend.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ RUN pnpm fetch
2828
COPY . .
2929
RUN pnpm install -r
3030

31+
# Generate build info explicitly to ensure it captures build-time ARGs
32+
WORKDIR /app/frontend
33+
RUN sh ./create_build_info.sh
34+
WORKDIR /app
35+
3136
RUN pnpm --filter @kleinkram/shared build
3237
RUN pnpm --filter @kleinkram/validation build
3338
RUN pnpm --filter @kleinkram/api-dto build

docs/build_output.txt

Lines changed: 0 additions & 35 deletions
This file was deleted.

frontend/create_build_info.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,5 @@ export default build;
7676
"
7777

7878
# Write to file
79+
mkdir -p ./src
7980
echo "${build_info}" > ./src/build.ts

0 commit comments

Comments
 (0)