File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ COPY --chown=default:root package.json pnpm-lock.yaml pnpm-workspace.yaml ./
1212COPY --chown=default:root ./scripts ./scripts
1313COPY --chown=default:root ./public ./public
1414
15- # 2. Install dependencies and prepare runtime env config
15+ # 2. Install dependencies
16+ # (env-config.js is generated at container start by the base image's env.sh)
1617RUN pnpm install --frozen-lockfile --ignore-scripts && pnpm store prune
17- RUN pnpm update-runtime-env
1818
1919# 3. Copy remaining source files
2020COPY --chown=default:root index.html vite.config.mts vite.config.build.ts eslint.config.mjs tsconfig.json tsconfig.build.json .prettierrc.json .env* ./
@@ -23,7 +23,7 @@ COPY --chown=default:root ./test ./test
2323
2424# 4. Build
2525ARG REACT_APP_SENTRY_RELEASE
26- ENV APP_RELEASE =${REACT_APP_SENTRY_RELEASE:-"" }
26+ ENV SENTRY_RELEASE =${REACT_APP_SENTRY_RELEASE:-"" }
2727RUN pnpm build
2828
2929
@@ -33,7 +33,7 @@ RUN pnpm build
3333FROM helsinki.azurecr.io/ubi10/nginx-126-spa-standard AS production
3434
3535ARG REACT_APP_SENTRY_RELEASE
36- ENV APP_RELEASE =${REACT_APP_SENTRY_RELEASE:-"" }
36+ ENV SENTRY_RELEASE =${REACT_APP_SENTRY_RELEASE:-"" }
3737
3838# Copy compiled assets
3939COPY --from=staticbuilder /app/build /usr/share/nginx/html
You can’t perform that action at this time.
0 commit comments