Skip to main content

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_imageFROM image with no tag (implicitly :latest)
  • latest_tagFROM image:latest
  • runs_as_root — no USER instruction; the container runs as root
  • secret_in_imageENV/ARG bakes a secret-named value into an image layer
  • add_instead_of_copyADD used for local files (prefer COPY)
  • missing_healthcheck — no HEALTHCHECK instruction (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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tesserakit_dockerfile-0.4.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tesserakit_dockerfile-0.4.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

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

Hashes for tesserakit_dockerfile-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9a980ca61be5ca01b43b6fbcc2996c0ee838f29a889cb55d0617898665146db5
MD5 e6ebcbc320f29cacd0d8694997aa5114
BLAKE2b-256 3b81eae28bc0fc512808ab04399a3eb2e1d9e4015df062b4fae4e1cc683f2b17

See more details on using hashes here.

File details

Details for the file tesserakit_dockerfile-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tesserakit_dockerfile-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66ed368497ff95b711424b4ef9969421121bf4ef0fb7e523c872e1da62d9cbb3
MD5 fd638701735d50f424ecc6829a961cc7
BLAKE2b-256 f21284747aa0767cb75d4d115b35db91087cf3568cb785b75c69079530b15fe5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page