Hacker GitHub

← All repos

reteps/dockerfmt

View on GitHub ↗ ★ 626 Go

Dockerfile formatter. a modern dockfmt.

5 mentions on Hacker News by 3 people: 1 story, 4 comments · first 2025-04-09 · latest 2025-04-09

Mentions per year 5 mentions · busiest year 2025 (5)
20082026
  1. In the spirit of constructive feedback, I filed an issue for you: https://github.com/reteps/dockerfmt/issues/18 I fixed this in the 0.2.8 release https://github.com/reteps/dockerfmt/releases/tag/0.2.8 . Relevant reading about the `&&`…
    comment by spicypete · 2025-04-09 · in Dockerfmt: A Dockerfile Formatter
  2. Then they can use one of the 14 in the `tests` directory :) https://github.com/reteps/dockerfmt/tree/main/tests
    comment by spicypete · 2025-04-09 · in Dockerfmt: A Dockerfile Formatter
  3. …dockerfmt \ -v /path/to/Dockerfile:/tmp/Dockerfile \ golang:1.24-alpine sh -c \ "apk add git && go run github.com/reteps/dockerfmt@latest /tmp/Dockerfile" > against an existing file For this part yes, you'd still need one, but it can be…
    comment by PhilippGille · 2025-04-09 · in Dockerfmt: A Dockerfile Formatter
  4. waaaat? https://github.com/reteps/dockerfmt#:~:text=The%20RUN%20pars... I am firmly in the camp of RUN set -e ;\ export DEBIAN_FRONTEND=noninteractive ;\ etc etc so I guess this tool isn't for me
    comment by mdaniel · 2025-04-09 · in Dockerfmt: A Dockerfile Formatter