# Demonstrates that debugx correctly detects it is running inside Docker
# (see debugx/collectors/docker.py) and that reports can be written to a
# mounted volume for inspection from the host.
#
# Build and run:
#   docker build -t debugx-example -f examples/docker_example/Dockerfile .
#   docker run --rm -v "$(pwd)/reports:/app/reports" debugx-example

FROM python:3.12-slim

WORKDIR /app
COPY . /app
RUN pip install --no-cache-dir -e .

CMD ["python", "-c", "from debugx import capture; r = capture(output=['json'], output_directory='./reports'); print(r.snapshot.collector_data('docker'))"]
