mirror of
https://github.com/Z4nzu/hackingtool
synced 2026-05-24 09:28:43 +00:00
Dockerfile: - Add '# syntax=docker/dockerfile:1' to enable BuildKit features - Add LABEL metadata (OCI image spec) - Remove unused apt packages: sudo, python3-venv - Replace --no-cache-dir with --mount=type=cache for pip (faster rebuilds) - Add comments explaining each decision docker-compose.yml: - Remove deprecated 'version:' field (Compose v2 ignores it, shows warning) - Add 'image: hackingtool:latest' tag for clarity - Add 'restart: unless-stopped' for production service - Add 'hackingtool-dev' profile service with live source volume mount so dev workflow (edit without rebuild) is separate from default run - Clarify volume purpose in comments .dockerignore (new): - Exclude .git/, images/, __pycache__/, .github/, *.md, tests/ - Prevents multi-hundred-MB build context; dramatically reduces image size - Keeps layer cache more stable (README changes no longer bust COPY layer) README.md / README_template.md: - Replace single-line Docker snippet with 3-option step-by-step guide: Option A: docker run -it --rm (no Compose) Option B: docker compose up -d + exec (recommended) Option C: docker compose --profile dev (live source mount) - Add docker compose down / down -v stop instructions
30 lines
316 B
Text
30 lines
316 B
Text
# Version control
|
|
.git/
|
|
.gitignore
|
|
|
|
# GitHub / docs
|
|
.github/
|
|
images/
|
|
*.md
|
|
|
|
# Python cache
|
|
__pycache__/
|
|
*.py[cod]
|
|
*.pyo
|
|
.mypy_cache/
|
|
.ruff_cache/
|
|
.pytest_cache/
|
|
|
|
# Tests
|
|
tests/
|
|
test_*.py
|
|
|
|
# Docker files themselves (don't recurse)
|
|
Dockerfile
|
|
docker-compose.yml
|
|
.dockerignore
|
|
|
|
# OS / editor noise
|
|
.DS_Store
|
|
*.swp
|
|
*.swo
|