Skip to content

Commit

Permalink
doc: adjust docker run command in README; set workdir for directory m…
Browse files Browse the repository at this point in the history
…apping to work

Signed-off-by: Florian Bauer <[email protected]>
  • Loading branch information
fsrv-xyz committed Dec 23, 2024
1 parent 78cb806 commit fc1bac3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ RUN make build

FROM alpine:latest
COPY --from=build /build/dist/yamlfmt /bin/yamlfmt
WORKDIR /project
ENTRYPOINT ["/bin/yamlfmt"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ yaml lint:
```
The Docker image can also be used to run yamlfmt without installing it on your system.
```bash
docker run -v $(pwd):/project ghcr.io/google/yamlfmt:latest yamlfmt .
docker run -v "$(pwd):/project" ghcr.io/google/yamlfmt:latest .
```

# Configuration File
Expand Down

0 comments on commit fc1bac3

Please sign in to comment.