# Profiler sidecar: shares the PID namespace of ONE api container (--pid=container:) and # gets SYS_PTRACE only for itself; the API image stays unprivileged and unchanged. FROM python:3.13.16-slim-bookworm@sha256:a1165e272e578941b84abc79e4ab38a0305cd12803a5c4247979ac7655f4d641 COPY requirements.txt /tmp/requirements.txt RUN pip install --no-cache-dir --root-user-action=ignore --require-hashes --no-deps -r /tmp/requirements.txt ENTRYPOINT ["py-spy"]