From 2c3c80f3796409c93fae51b5f0b2447618123a2d Mon Sep 17 00:00:00 2001 From: Semmal Date: Tue, 28 Jul 2026 10:06:57 +0000 Subject: [PATCH] fix(build) added staging environment at buildingtime --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index dc714d4..14802f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,11 +19,11 @@ RUN npm ci --prefer-offline COPY eeg_frontend/openapi.yaml ./ RUN npx openapi-generator-cli generate -i ./openapi.yaml -g typescript-angular -o ./src/app/api +COPY eeg_frontend/ ./ ARG VITE_OR_ANGULAR_BACKEND_URL ENV BACKEND_URL=$VITE_OR_ANGULAR_BACKEND_URL -RUN sed -i "s|https://API_URL_PLACEHOLDER|${BACKEND_URL}|g" eeg_frontend/src/environments/environment.staging.ts +RUN sed -i "s|https://API_URL_PLACEHOLDER|${BACKEND_URL}|g" src/environments/environment.staging.ts -COPY eeg_frontend/ ./ RUN npm run build -- --configuration staging # ---- Stage 2: Build Spring Boot Backend ----