Skip to content

Commit 69c59f2

Browse files
committed
fix: pass Sentry release as SENTRY_RELEASE env var
1 parent 49643f4 commit 69c59f2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ COPY --chown=default:root package.json pnpm-lock.yaml pnpm-workspace.yaml ./
1212
COPY --chown=default:root ./scripts ./scripts
1313
COPY --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)
1617
RUN pnpm install --frozen-lockfile --ignore-scripts && pnpm store prune
17-
RUN pnpm update-runtime-env
1818

1919
# 3. Copy remaining source files
2020
COPY --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
2525
ARG REACT_APP_SENTRY_RELEASE
26-
ENV APP_RELEASE=${REACT_APP_SENTRY_RELEASE:-""}
26+
ENV SENTRY_RELEASE=${REACT_APP_SENTRY_RELEASE:-""}
2727
RUN pnpm build
2828

2929

@@ -33,7 +33,7 @@ RUN pnpm build
3333
FROM helsinki.azurecr.io/ubi10/nginx-126-spa-standard AS production
3434

3535
ARG 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
3939
COPY --from=staticbuilder /app/build /usr/share/nginx/html

0 commit comments

Comments
 (0)