File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,14 @@ FROM node:22-bookworm-slim as node-env
22
33WORKDIR /app
44ARG SENTRY_AUTH_TOKEN
5+ ARG DISABLE_SENTRY
56ENV PATH /app/node_modules/.bin:$PATH
67COPY eform-angular-frontend/eform-client ./
78RUN apt-get update
89RUN apt-get -y -q install ca-certificates
910RUN yarn install
1011RUN 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
1314FROM mcr.microsoft.com/dotnet/sdk:9.0-noble AS build-env
1415WORKDIR /app
@@ -37,6 +38,8 @@ RUN dotnet publish GreateBelt.Pn -o GreateBelt.Pn/out /p:Version=$PLUGIN6VERSION
3738# Build runtime image
3839FROM mcr.microsoft.com/dotnet/aspnet:9.0-noble
3940WORKDIR /app
41+ ARG DISABLE_SENTRY
42+ ENV DISABLE_SENTRY=${DISABLE_SENTRY}
4043COPY --from=build-env /app/eFormAPI.Web/out .
4144RUN mkdir -p ./Plugins/ItemsPlanning.Pn
4245RUN mkdir -p ./Plugins/Workflow.Pn
You can’t perform that action at this time.
0 commit comments