From a44eeb76ebdf7046999e4bb819630654a6183fd0 Mon Sep 17 00:00:00 2001 From: ccbikai Date: Tue, 15 Oct 2024 21:06:49 +0800 Subject: [PATCH] feat: simplify secret handling in build process Streamlines the build script by consolidating multiple secret exports into a single command, enhancing maintainability and reducing redundancy. --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 846169a..7689ee4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,8 +16,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile FROM build-deps AS build COPY . . RUN export $(cat .env.example) && \ - export $(cat /run/secrets/SENTRY_AUTH_TOKEN) && \ - export $(cat /run/secrets/SENTRY_PROJECT) && \ + export $(cat /run/secrets) && \ export DOCKER=true && \ pnpm run build