7124fb5f53
- 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)
18 lines
488 B
YAML
18 lines
488 B
YAML
repos:
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.15.12
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix, --exit-non-zero-on-fix]
|
|
- id: ruff-format
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: docker-build
|
|
name: docker build
|
|
language: system
|
|
entry: buildah --storage-driver vfs bud -t artifactapi:pre-commit-test .
|
|
pass_filenames: false
|
|
files: ^(Dockerfile|\.dockerignore|pyproject\.toml|src/)
|
|
stages: [pre-commit]
|