Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ RUN ln -sf /opt/python/bin/python3 /.venv/bin/python3 && \
RUN find /.venv -name "*.so" -exec ldd {} \; 2>&1 | grep "not found" && exit 1 || true

# Distroless production image — minimal attack surface, no shell
FROM ghcr.io/getsentry/dhi/python:3.13-debian13 AS application-distroless
FROM ghcr.io/oioki/python-base-image/python:3.13-debian13 AS application-distroless

COPY --from=distroless_prep /.venv /.venv
COPY --from=distroless_prep /usr/src/snuba /usr/src/snuba
Expand All @@ -187,7 +187,7 @@ ENTRYPOINT ["python3", "/usr/src/snuba/docker_entrypoint.py"]
CMD ["api"]

# Debug distroless image — includes busybox (sh, ls, cat, wget, env, etc.)
FROM ghcr.io/getsentry/dhi/python:3.13-debian13-dev AS application-distroless-debug
FROM ghcr.io/oioki/python-base-image/python:3.13-debian13-dev AS application-distroless-debug

COPY --from=distroless_prep /.venv /.venv
COPY --from=distroless_prep /usr/src/snuba /usr/src/snuba
Expand Down
Loading