From 6c2cf2399ddfbb0cf64558dd12e041fa65c298e2 Mon Sep 17 00:00:00 2001 From: devthejo Date: Tue, 7 Nov 2023 15:29:13 +0100 Subject: [PATCH] fix: re-enable sentry --- dashboard/Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/dashboard/Dockerfile b/dashboard/Dockerfile index 58fe67108..efe13e1fa 100644 --- a/dashboard/Dockerfile +++ b/dashboard/Dockerfile @@ -17,12 +17,11 @@ COPY --chown=1000:1000 dashboard/. . ENV NODE_ENV=production RUN --mount=type=secret,id=sentry_auth_token \ - yarn build; - # yarn build; \ - # if [ -f "/run/secrets/sentry_auth_token" ]; then \ - # export SENTRY_AUTH_TOKEN=$(cat /run/secrets/sentry_auth_token); \ - # yarn sentry:sourcemaps; \ - # fi + yarn build; \ + if [ -f "/run/secrets/sentry_auth_token" ]; then \ + export SENTRY_AUTH_TOKEN=$(cat /run/secrets/sentry_auth_token); \ + yarn sentry:sourcemaps; \ + fi FROM ghcr.io/socialgouv/docker/nginx4spa:7.0.1