26 lines
552 B
Modula-2
26 lines
552 B
Modula-2
Bootstrap: docker
|
|
From: python:3.11-slim
|
|
|
|
%post
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends imagemagick
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
pip install --no-cache-dir jinja2 pyyaml coverage pytest pytest-cov
|
|
mkdir -p /src
|
|
|
|
%files
|
|
. /src
|
|
|
|
%environment
|
|
export PYTHONPATH=/src
|
|
|
|
%runscript
|
|
cd /src
|
|
exec python3 generate_gallery.py "$@"
|
|
|
|
%test
|
|
# Run container tests with coverage to validate the build
|
|
echo "Running container validation tests with coverage..."
|
|
cd /src
|
|
python3 tests/run_coverage.py |