diff --git a/admin/Dockerfile b/admin/Dockerfile index b911a7e49d..41999a1291 100644 --- a/admin/Dockerfile +++ b/admin/Dockerfile @@ -43,6 +43,8 @@ ARG VITE_SENTRY_SESSION_SAMPLE_RATE ARG VITE_SENTRY_TRACING_SAMPLE_RATE ARG VITE_SENTRY_ON_ERROR_SAMPLE_RATE +RUN cd packages/lib && npm run build +RUN cd packages/ds && npm run build RUN --mount=type=secret,id=SENTRY_AUTH_TOKEN \ SENTRY_AUTH_TOKEN=$(cat /run/secrets/SENTRY_AUTH_TOKEN) \ npm run build -- -- --mode ${VITE_ENVIRONMENT} diff --git a/app/Dockerfile b/app/Dockerfile index b8b817c3b6..aad0d5073b 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -46,6 +46,8 @@ ARG VITE_FRANCE_CONNECT_URL ARG VITE_API_ENGAGEMENT_URL ARG VITE_API_ENGAGEMENT_SNU_ID +RUN cd packages/lib && npm run build +RUN cd packages/ds && npm run build RUN --mount=type=secret,id=SENTRY_AUTH_TOKEN \ SENTRY_AUTH_TOKEN=$(cat /run/secrets/SENTRY_AUTH_TOKEN) \ npm run build -- -- --mode ${VITE_ENVIRONMENT}