{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools/3"}],"enrichment":{"capability":"Parses Dockerfile syntax into structured Python objects using the official Docker parser, exposing commands, flags, and values for programmatic inspection.","skillfed_tags":["dockerfile-parsing","docker-tooling","archived"],"use_cases":["Analyze Dockerfile structure in CI/CD pipelines to validate layer counts, base images, or security patterns.","Extract environment variables, exposed ports, or entrypoint commands from Dockerfiles for documentation or compliance scanning.","Build linting or static analysis tools that inspect Dockerfile syntax and report violations.","Programmatically modify or generate Dockerfiles by parsing existing ones and reconstructing them with changes."],"what_it_does":"dockerfile is a Python wrapper around Docker's official Dockerfile parser, written in Go. It exposes three main functions: all_cmds() lists valid Dockerfile commands, parse_file() parses a Dockerfile from disk, and parse_string() parses Dockerfile syntax from a string. Each returns a tuple of Command objects with structured fields (cmd, sub_cmd, json flag, original text, line number, flags, and parsed values).\n\nThe package is useful for tools that need to analyze or manipulate Dockerfile content programmatically. It has no runtime dependencies and handles parsing errors with specific exception types (GoIOError for file access, GoParseError for syntax). The repository is now archived and unmaintained, though it remains functional for current Python versions.","worth_installing":"Yes, if you need reliable Dockerfile parsing and can accept that the package is archived. The MIT license is permissive, install friction is manageable with prebuilt wheels, and there are no known vulnerabilities. However, be aware that the repository is no longer maintained\u2014if Docker's parser evolves significantly or you encounter edge cases, upstream fixes are unlikely. For new projects, verify that the parsing behavior matches your current Docker version."},"id":"dockerfile","links":{"html":"https://skillfed.io/packages/dockerfile","md":"https://skillfed.io/packages/dockerfile.md","pypi":"https://pypi.org/project/dockerfile/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2025-01-04","license_spdx":null,"license_treatment":"permissive","name":"dockerfile","python_support":"supports_current","summary":"Parse a dockerfile into a high-level representation using the official go parser."},"popularity":{"monthly_downloads":358768,"position":7260,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.4.0"}
