Dockerfile 333 B

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