mirror of
https://github.com/d0zingcat/BroadcastChannel.git
synced 2026-06-03 07:26:50 +00:00
refactor: improve security by using Docker secrets for Sentry tokens
Enhanced security by integrating Docker secrets for Sentry authentication and project tokens, reducing exposure of sensitive information in environment variables.
This commit is contained in:
@@ -15,7 +15,11 @@ 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 DOCKER=true && pnpm run build
|
||||
RUN export $(cat .env.example) && \
|
||||
export $(cat /run/secrets/SENTRY_AUTH_TOKEN) && \
|
||||
export $(cat /run/secrets/SENTRY_PROJECT) && \
|
||||
export DOCKER=true && \
|
||||
pnpm run build
|
||||
|
||||
FROM base AS runtime
|
||||
# COPY --from=prod-deps /app/node_modules ./node_modules
|
||||
|
||||
Reference in New Issue
Block a user