FROM python:3.12-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt \ && pip install --no-cache-dir opentelemetry-distro opentelemetry-exporter-otlp-proto-grpc \ && opentelemetry-bootstrap -a install COPY collector.py . CMD ["opentelemetry-instrument", "python", "-u", "collector.py"]