# Build from the production image so the tested API and datapath are exactly those # shipped. Tests run as root in this container's isolated network namespace. ARG FIREGEX_IMAGE=firegex-mcp:dev FROM ${FIREGEX_IMAGE} USER root RUN dnf install -y gcc python3.14-devel curl tcpdump iptables procps-ng && dnf clean all COPY tests/pyproject.toml /test/tests/pyproject.toml COPY fgex-lib /test/fgex-lib RUN python3 -m venv /test/tests/.venv && \ /test/tests/.venv/bin/pip install --group /test/tests/pyproject.toml:test && \ /test/tests/.venv/bin/pip install -e /test/fgex-lib COPY tests /test/tests COPY backend /test/backend COPY run.py firegex.sh /test/ ENV FIREGEX_MCP_TEST_DB=/execute/db/mcp/control.sqlite3 ENV FIREGEX_TEST_DEPS_READY=1