This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new eb1934e  Add a list of specific files to use in the Alpine container
eb1934e is described below

commit eb1934ec20f5cccfb4e842ec8e7caec4a2fc965f
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon Jan 12 16:57:55 2026 +0000

    Add a list of specific files to use in the Alpine container
---
 .dockerignore     | 50 +++++++++++++++++++++++++-------------------------
 Dockerfile.alpine |  2 +-
 Makefile          | 11 +++++++++--
 3 files changed, 35 insertions(+), 28 deletions(-)

diff --git a/.dockerignore b/.dockerignore
index 9a02b07..d70659b 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -1,25 +1,25 @@
-*.pyc
-*.pyd
-*.pyo
-*.so
-.Python
-.coverage
-.dmypy.json
-.hypothesis/
-.mypy_cache/
-.nox/
-.poetry
-.pyre/
-.pytest_cache
-.pytype/
-.ruff_cache/
-.tox/
-.venv
-__pycache__
-cert.pem
-dev/
-dmypy.json
-htmlcov/
-key.pem
-node_modules/
-state/
+# Allowlist for Dockerfile.alpine
+# Exclude everything, then include only what the build needs
+*
+
+# Git history, for dunamai version generation
+!.git/
+
+# Build definition and dependency files
+!alembic.ini
+!Makefile
+!pyproject.toml
+!start-atr.sh
+!uv.lock
+
+# Application source code, migrations, patches, and scripts
+!atr/
+!migrations/
+!patches/
+!scripts/
+
+# Exclude caches within included directories
+**/__pycache__/
+**/*.pyc
+**/*.pyo
+**/*.pyd
diff --git a/Dockerfile.alpine b/Dockerfile.alpine
index 16a1341..b149825 100644
--- a/Dockerfile.alpine
+++ b/Dockerfile.alpine
@@ -30,7 +30,7 @@ COPY . .
 
 # generate a version.py module from git information
 RUN make generate-version
-RUN make docs
+RUN make build-docs
 
 WORKDIR /opt/atr/.venv/lib/python3.13/site-packages
 RUN patch -p2 < /opt/atr/patches/generics.py.patch || :
diff --git a/Makefile b/Makefile
index b5f5ac9..fd00346 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-.PHONY: build build-alpine build-bootstrap build-playwright build-ts \
-  bump-bootstrap certs check check-extra check-light commit \
+.PHONY: build build-alpine build-bootstrap build-docs build-playwright \
+  build-ts bump-bootstrap certs check check-extra check-light commit \
   docs generate-version ipython manual run-alpine run-playwright \
   run-playwright-slow serve serve-local sync sync-all update-deps
 
@@ -18,6 +18,13 @@ build-bootstrap:
          -v "$$PWD/atr/static:/run/bootstrap-output" \
          atr-bootstrap
 
+build-docs:
+       mkdir -p docs
+       rm -f docs/*.html
+       uv run --frozen python3 scripts/docs_build.py
+       for fn in atr/docs/*.md; do out=$${fn#atr/}; cmark "$$fn" > 
"$${out%.md}.html"; done
+       uv run --frozen python3 scripts/docs_post_process.py docs/*.html
+
 build-playwright:
        docker build -t atr-playwright -f tests/Dockerfile.playwright playwright
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to