Dockerfile job pack for Tessera: lint Dockerfiles for image hygiene and security.
Project description
tesserakit-dockerfile
Lint Dockerfiles for image hygiene and security.
tessera-dockerfile parses Dockerfiles (handling line continuations and multi-stage builds), inventories their instructions, and flags common hygiene and security problems. No image is built and nothing is executed.
Lint
tessera dockerfile lint --input . --output ./out/dockerfile_pack
tessera dockerfile lint --input Dockerfile --output ./out/dockerfile_pack
Recognizes Dockerfile, Dockerfile.*, and *.dockerfile.
Artifacts written:
instructions.jsonl one Instruction per parsed line (with build stage)
index.md instruction inventory + stage list
validation_report.md hygiene + security findings
coverage_report.md instruction frequency
Lint rules
unpinned_base_image—FROM imagewith no tag (implicitly:latest)latest_tag—FROM image:latestruns_as_root— noUSERinstruction; the container runs as rootsecret_in_image—ENV/ARGbakes a secret-named value into an image layeradd_instead_of_copy—ADDused for local files (preferCOPY)missing_healthcheck— noHEALTHCHECKinstruction (info)
Multi-stage builds are understood: a FROM <stage> that references an earlier AS <stage> is not flagged as an unpinned base image.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tesserakit_dockerfile-0.4.0.tar.gz.
File metadata
- Download URL: tesserakit_dockerfile-0.4.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a980ca61be5ca01b43b6fbcc2996c0ee838f29a889cb55d0617898665146db5
|
|
| MD5 |
e6ebcbc320f29cacd0d8694997aa5114
|
|
| BLAKE2b-256 |
3b81eae28bc0fc512808ab04399a3eb2e1d9e4015df062b4fae4e1cc683f2b17
|
File details
Details for the file tesserakit_dockerfile-0.4.0-py3-none-any.whl.
File metadata
- Download URL: tesserakit_dockerfile-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66ed368497ff95b711424b4ef9969421121bf4ef0fb7e523c872e1da62d9cbb3
|
|
| MD5 |
fd638701735d50f424ecc6829a961cc7
|
|
| BLAKE2b-256 |
f21284747aa0767cb75d4d115b35db91087cf3568cb785b75c69079530b15fe5
|