Skip to content

Commit

Permalink
fix sentry setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Jun 6, 2024
1 parent fd40b38 commit 797159a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions other/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ RUN npx prisma generate

ADD . .

ENV SENTRY_ORG="kent-c-dodds-tech-llc"
ENV SENTRY_PROJECT="gratitext"

# Mount the secret and set it as an environment variable and run the build
RUN --mount=type=secret,id=SENTRY_AUTH_TOKEN \
export SENTRY_AUTH_TOKEN=$(cat /run/secrets/SENTRY_AUTH_TOKEN) && \
Expand All @@ -49,8 +52,6 @@ RUN --mount=type=secret,id=SENTRY_AUTH_TOKEN \
# Finally, build the production image with minimal footprint
FROM base

ENV SENTRY_ORG="kent-c-dodds-tech-llc"
ENV SENTRY_PROJECT="gratitext"
ENV FLY="true"
ENV LITEFS_DIR="/litefs/data"
ENV DATABASE_FILENAME="sqlite.db"
Expand Down

0 comments on commit 797159a

Please sign in to comment.