Skip to content

retepsdockerfmt

Dockerfile formatter. a modern dockfmt.

Repository stars
627 Star
All-time
#55,710 all time
Fork
23 Fork
Repository created
since 2025
Language
Go
License
MIT
Commercial use OKMIT; keep the license notice
Recently updatedLast push 18 days ago

About

README

An opinionated Dockerfile formatter, built on BuildKit's parser, that formats RUN commands with shfmt.

What it does

  • Each formatted instruction is parsed again with BuildKit and compared with the original.
  • Line endings (LF or CRLF) and the trailing newline are kept as they are.

Getting started

For CI systems that need one, such as GitLab CI, use ghcr.io/reteps/dockerfmt:alpine.

Limitations

The default image has no shell.

Summarized by AI from the README · As of 2026-12-02, reteps/dockerfmt had 627 stars. According to the 2026-12-02 record, reteps/dockerfmt is catalogued under Build & Deployment. A permissive license allows commercial use under its terms. The last push was on 2026-11-14. The figures come from a GitHub API snapshot. Stars count expressions of interest. Record updated: . About the data

Raw observations · 27
Historical observations
Measured atRepository starsSource
2026-12-02 00:00 UTC627Source
2026-12-01 00:00 UTC627Source
2026-11-30 00:00 UTC627Source
2026-11-29 00:00 UTC627Source
2026-11-28 00:00 UTC628Source
2026-11-27 00:00 UTC628Source
2026-11-26 00:00 UTC628Source
2026-11-25 00:00 UTC629Source
2026-11-24 00:00 UTC628Source
2026-11-23 00:00 UTC628Source
2026-11-22 00:00 UTC628Source
2026-11-21 00:00 UTC628Source
2026-11-20 00:00 UTC628Source
2026-11-19 00:00 UTC628Source
2026-11-18 00:00 UTC628Source
2026-11-17 00:00 UTC628Source
2026-11-16 00:00 UTC626Source
2026-11-15 00:00 UTC626Source
2026-11-14 00:00 UTC626Source
2026-11-13 00:00 UTC626Source
2026-11-12 00:00 UTC626Source
2026-11-11 00:00 UTC626Source
2026-11-10 00:00 UTC625Source
2026-11-09 00:00 UTC625Source
2026-11-08 00:00 UTC625Source
2026-11-07 09:30 UTC625Source
2026-11-06 10:15 UTC625Source

Add a badge to your README

For project authors: paste it into the README. It updates daily and links back here.

Badge preview
[![github.day](https://github.day/badge/dockerfmt.svg)](https://github.day/resources/dockerfmt?ref=badge)

Share this project

Share on X

First collected 2026-11-06Measured at 2026-12-02 00:00 UTCSourceLicense source

Compiled from public project information; not independently tested. · Repository Stars, not unique users · License tiers are derived from metadata. Check obligations for your use; unknown does not mean prohibited.