Compare commits

..

1 Commits

Author SHA1 Message Date
unkinben 1f2ed873d1 build: align Dockerfile with packer build and add docker-compose dev mounts
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline failed
- Rebase Dockerfile onto almalinux9-base, install via uv tool install
- Remove dev artifacts (remotes.yaml, ca-bundle.pem) from image
- Mount gitignored dev files via docker-compose volumes instead
- Add .dockerignore to keep secrets out of build context
- Add pre-commit hook to validate docker build on Dockerfile changes
- Track docker-compose.yml in git (no secrets; dev files mounted as volumes)
2026-04-25 22:10:18 +10:00
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ repos:
- id: docker-build
name: docker build
language: system
entry: buildah --storage-driver vfs bud -t artifactapi:pre-commit-test .
entry: buildah bud -t artifactapi:pre-commit-test .
pass_filenames: false
files: ^(Dockerfile|\.dockerignore|pyproject\.toml|src/)
stages: [pre-commit]
+2
View File
@@ -4,6 +4,8 @@ when:
steps:
- name: pre-commit
image: git.unkin.net/unkin/almalinux9-base:20260308
environment:
BUILDAH_STORAGE_DRIVER: vfs
commands:
- dnf install -y buildah
- uvx pre-commit run --all-files