8 ms·
I had a chuckle when I looked at the source code and could not find a Dockerfile in there. I want to kick the tires on it and the easiest way would be to run it
by jensenbox 1y ago
I had a chuckle when I looked at the source code and could not find a Dockerfile in there. I want to kick the tires on it and the easiest way would be to run it as a Docker container against an existing file and alas, I cannot.
- klysm 1y agoThe project should certainly also be formatting its own docker file via a docker invocation
- thedougd 1y agoAnd built in a multistage Dockerfile.
- spicypete 1y agoHi there — I’ll try to distribute a docker release of the binary tomorrow!
- ithkuil 1y agoI suggest you build it with https://github.com/ko-build/ko https://github.com/ko-build/ko so you can still have no dockerfile and the irony is not ruined
- IshKebab 1y agoI think they were asking for a sample Dockerfile in the repo to test it on.
- spicypete 1y agoThen they can use one of the 14 in the `tests` directory :) https://github.com/reteps/dockerfmt/tree/main/tests https://github.com/reteps/dockerfmt/tree/main/tests
- PhilippGille 1y ago> the easiest way would be to run it as a Docker container Regarding this part, you can always just run a base image and add the app yourself. I'm on mobile so can't test, but should be along these lines: docker run --rm --name 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 any of your own.
- revskill 1y agoThe author doesn't know how to use AI.
- krick 1y agoI usually share the sentiment, but, come on, it's packaged as a single binary file...