# Lab 18 — AI detection, monitoring & incident response (Chapter 18).
#
# Runs THIS lab in isolation on the shared base image. Most users should instead
# use the pack-level `docker compose up` (labs/docker-compose.yml). This lab is
# fully offline and self-contained — it needs no model-api service, only the
# `common/` package (MockLLM, results_table) baked into the base image.
#
# Build the shared base once from the labs/ root:
#   docker build -t aais-labs:1.0.0 ./labs
# Then build + run just this lab (JupyterLab on :8888, token "aais"):
#   docker build -t aais-lab18 ./labs/18-ai-detection-monitoring-ir
#   docker run --rm -p 8888:8888 -v "$PWD/labs":/work aais-lab18
# Open the printed http://127.0.0.1:8888/lab?token=aais URL and run
# 18_ai_ir_playbook.ipynb (build it first with labs/build_notebooks.sh).
FROM aais-labs:1.0.0

WORKDIR /work
EXPOSE 8888

CMD ["jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--no-browser", \
     "--allow-root", "--ServerApp.root_dir=/work", \
     "--IdentityProvider.token=aais"]
