FROM ubuntu:22.04 ENV DEBIAN_FRONTEND=noninteractive # Install dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ jq \ bc \ shellcheck \ ca-certificates \ git \ && rm -rf /var/lib/apt/lists/* # Install bats (Bash Automated Testing System) RUN curl -sL https://github.com/bats-core/bats-core/archive/refs/tags/v1.11.0.tar.gz | tar xz \ && cd bats-core-1.11.0 \ && ./install.sh /usr/local \ && cd .. \ && rm -rf bats-core-1.11.0 WORKDIR /app # Copy scripts COPY solar-analysis/ /app/solar-analysis/ # Make scripts executable RUN chmod +x /app/solar-analysis/*.sh WORKDIR /app/solar-analysis ENTRYPOINT ["bats", "tests/"]