Skip to content

Commit 96858e9

Browse files
committed
Adding the new Sentry arguments for testing.
1 parent b7ff824 commit 96858e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ FROM node:22-bookworm-slim as node-env
22

33
WORKDIR /app
44
ARG SENTRY_AUTH_TOKEN
5+
ARG DISABLE_SENTRY
56
ENV PATH /app/node_modules/.bin:$PATH
67
COPY eform-angular-frontend/eform-client ./
78
RUN apt-get update
89
RUN apt-get -y -q install ca-certificates
910
RUN yarn install
1011
RUN yarn build
11-
RUN yarn sentrysourcemap
12+
RUN if [ -n "$SENTRY_AUTH_TOKEN" ] && [ "$DISABLE_SENTRY" != "true" ]; then yarn sentrysourcemap; else echo "Sentry sourcemap upload skipped (DISABLE_SENTRY=$DISABLE_SENTRY)"; fi
1213

1314
FROM mcr.microsoft.com/dotnet/sdk:9.0-noble AS build-env
1415
WORKDIR /app
@@ -37,6 +38,8 @@ RUN dotnet publish GreateBelt.Pn -o GreateBelt.Pn/out /p:Version=$PLUGIN6VERSION
3738
# Build runtime image
3839
FROM mcr.microsoft.com/dotnet/aspnet:9.0-noble
3940
WORKDIR /app
41+
ARG DISABLE_SENTRY
42+
ENV DISABLE_SENTRY=${DISABLE_SENTRY}
4043
COPY --from=build-env /app/eFormAPI.Web/out .
4144
RUN mkdir -p ./Plugins/ItemsPlanning.Pn
4245
RUN mkdir -p ./Plugins/Workflow.Pn

0 commit comments

Comments
 (0)