# NeuroAgentTest (NAT) — Multi-Agent Neural Network Framework
# Copyright (C) 2026 NAT Contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# For commercial licensing, contact: licensing@nat-testing.io

# action/Dockerfile — Docker-based GitHub Action image for NAT.
#
# This image is used when the action is invoked with `using: docker` (see
# action-docker.yml), which provides faster startup than the composite action
# because NAT is pre-installed rather than installed fresh on each run.
#
# Build and publish via the action-release workflow.

FROM ghcr.io/nat-testing/nat-engine:latest

# Copy the action helper scripts into the image so they are available at
# runtime without needing a checkout step.
COPY entrypoint.sh /action/entrypoint.sh
COPY parse_results.py /action/parse_results.py

RUN chmod +x /action/entrypoint.sh

ENTRYPOINT ["/action/entrypoint.sh"]
