@@ -134,6 +134,10 @@ ENV LD_PRELOAD=/usr/src/snuba/libjemalloc.so.2 \
134134 PYTHONUNBUFFERED=1 \
135135 PYTHONDONTWRITEBYTECODE=1
136136
137+ # set up sentry options schemas and default path
138+ COPY sentry-options/schemas /etc/sentry-options/schemas
139+ ENV SENTRY_OPTIONS_DIR=/etc/sentry-options
140+
137141USER snuba
138142EXPOSE 1218 1219
139143ENTRYPOINT [ "./docker_entrypoint.sh" ]
@@ -163,6 +167,7 @@ FROM ghcr.io/getsentry/dhi/python:3.13-debian13 AS application-distroless
163167
164168COPY --from=distroless_prep /.venv /.venv
165169COPY --from=distroless_prep /usr/src/snuba /usr/src/snuba
170+ COPY --from=distroless_prep /etc/sentry-options /etc/sentry-options
166171COPY --from=distroless_prep /usr/lib/*/libjemalloc.so.2 /usr/lib/libjemalloc.so.2
167172COPY --from=distroless_prep /etc/passwd /etc/passwd
168173COPY --from=distroless_prep /etc/group /etc/group
@@ -174,7 +179,8 @@ ENV PATH="/.venv/bin:/opt/python/bin:$PATH" \
174179 SNUBA_RELEASE=$SOURCE_COMMIT \
175180 FLASK_DEBUG=0 \
176181 PYTHONUNBUFFERED=1 \
177- PYTHONDONTWRITEBYTECODE=1
182+ PYTHONDONTWRITEBYTECODE=1 \
183+ SENTRY_OPTIONS_DIR=/etc/sentry-options
178184
179185USER 1000
180186EXPOSE 1218 1219
@@ -186,6 +192,7 @@ FROM ghcr.io/getsentry/dhi/python:3.13-debian13-dev AS application-distroless-de
186192
187193COPY --from=distroless_prep /.venv /.venv
188194COPY --from=distroless_prep /usr/src/snuba /usr/src/snuba
195+ COPY --from=distroless_prep /etc/sentry-options /etc/sentry-options
189196COPY --from=distroless_prep /usr/lib/*/libjemalloc.so.2 /usr/lib/libjemalloc.so.2
190197COPY --from=distroless_prep /etc/passwd /etc/passwd
191198COPY --from=distroless_prep /etc/group /etc/group
@@ -197,7 +204,8 @@ ENV PATH="/.venv/bin:/opt/python/bin:$PATH" \
197204 SNUBA_RELEASE=$SOURCE_COMMIT \
198205 FLASK_DEBUG=0 \
199206 PYTHONUNBUFFERED=1 \
200- PYTHONDONTWRITEBYTECODE=1
207+ PYTHONDONTWRITEBYTECODE=1 \
208+ SENTRY_OPTIONS_DIR=/etc/sentry-options
201209
202210USER 1000
203211EXPOSE 1218 1219
@@ -223,9 +231,5 @@ RUN set -ex; \
223231 rm -rf /tmp/rust_wheels/; \
224232 snuba --help
225233
226- # set up sentry options schemas and default path
227- COPY sentry-options/schemas /etc/sentry-options/schemas
228- ENV SENTRY_OPTIONS_DIR=/etc/sentry-options
229-
230234ENV PATH="${PATH}:/root/.cargo/bin/"
231235USER snuba
0 commit comments