Dockerfile: package source for Sentry stacktrace context

10d3ddc · gmorell · 2026-06-26 19:20

1 files +6 -0

Files changed

modified Dockerfile
+6 −0
@@ -84,6 +84,12 @@ RUN mix assets.deploy
84 84 COPY config/runtime.exs config/
85 85
86 86 COPY rel rel
87 +
88 +# Package source into the release so Sentry stacktraces show code
89 +# context (lib/ is already copied above). Without this Sentry still
90 +# reports errors, just without snippets, and warns at boot.
91 +RUN mix sentry.package_source_code
92 +
87 93 RUN mix release
88 94
89 95 # start a new build stage so that the final image will only contain

Parents: 52bf85b