Commit graph

4 commits

Author SHA1 Message Date
Hardik Zinzuvadiya
64b9062c9e Improve Dockerfile, docker-compose, add .dockerignore
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
2026-03-15 14:27:36 +05:30
Hardik Zinzuvadiya
a46f01005b Phase 1+2: Fix all 30 critical bugs and 4 security vulnerabilities 2026-03-15 13:54:03 +05:30
JinnaBalu
1c2cbbbe2a Optimized Dockerfile for layer cache and moved all the installations for cache not to rerun the same layer for every code change for Docker container. 2023-09-01 12:32:42 +05:30
Víctor García
108bf23272 Add Docker 2022-12-02 22:16:16 +01:00