{"repo":"reteps/dockerfmt","free":true,"listed":false,"github":"https://github.com/reteps/dockerfmt","clone":"git clone https://github.com/reteps/dockerfmt.git","description":"Dockerfile formatter. a modern dockfmt.","language":"Go","stars":609,"topics":["dockerfile","formatter","docker"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"dockerfmt An opinionated Dockerfile formatter. Formats directives, normalizes whitespace, and uses shfmt to format shell commands inside RUN steps. Spiritual successor to dockfmt, built on the buildkit parser. Table of Contents - Demo - Features - Installation - Usage - Configuration - Ignoring Directives - Pre-commit - Limitations Demo Features - Formats shell commands in RUN steps via shfmt — consistent && chains, indentation, quoting - Preserves and re-aligns inline comments, even across multiline RUN steps - Normalizes whitespace and extra blank lines across all directives - Converts legacy ENV syntax ( ENV key value → ENV key=value ) - Upgrades deprecated directives ( MAINTAINER → LABEL ) - Supports heredocs in RUN steps - Reads from files or stdin - Pre-commit hook support - JS/WASM bindings for Node.js (docs) - Docker image for CI use Installation Binaries Download from the releases page. go install Docker Usage Configuration EditorConfig dockerfmt reads EditorConfig files to pick up project-level formatting defaults. The following properties are supported: EditorConfig property dockerfmt equivalent Notes ------------------------ -------------------- --------------------------- indent size --indent Standard EditorConfig key insert final newline --newline Standard EditorConfig key space redirects --space-redirects Custom key (non-standard) CLI flags always take precedence over EditorConfig values. Example .editorconfig : Note: EditorConfig is only applied when formattin","default_branch":null,"files":null,"tree":[],"storefront":"/r/reteps","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/reteps/dockerfmt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}