mirror of
https://github.com/d0zingcat/BroadcastChannel.git
synced 2026-05-13 23:16:46 +00:00
fix: update Sentry configuration in Docker builds
Improves Sentry integration in Docker builds by: - Moving Sentry environment variables to build args - Adding .env to dockerignore for security - Properly passing Sentry configuration during build process This change ensures better security practices and more reliable Sentry configuration in containerized environments.
This commit is contained in:
@@ -15,6 +15,11 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
||||
|
||||
FROM build-deps AS build
|
||||
COPY . .
|
||||
|
||||
ARG SENTRY_DSN
|
||||
ARG SENTRY_AUTH_TOKEN
|
||||
ARG SENTRY_PROJECT
|
||||
|
||||
RUN export $(cat .env.example) && \
|
||||
export DOCKER=true && \
|
||||
pnpm run build
|
||||
|
||||
Reference in New Issue
Block a user