Skip to content

Commit 6bd19a5

Browse files
committed
Address #226
1 parent d0a9999 commit 6bd19a5

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build \
2929
-v -o /openapi-changes openapi-changes.go
3030

3131
FROM --platform=$TARGETPLATFORM debian:bookworm-slim
32-
RUN apt-get update && apt-get --yes install git && rm -rf /var/lib/apt/lists/*
32+
RUN apt-get update \
33+
&& apt-get --yes install git \
34+
&& git config --system --add safe.directory '*' \
35+
&& rm -rf /var/lib/apt/lists/*
3336
WORKDIR /work
3437
COPY --from=builder /openapi-changes /
3538

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ docker pull pb33f/openapi-changes
6363

6464
Docker images are available for both `linux/amd64` and `linux/arm64`.
6565

66+
The published image configures Git to trust mounted repositories, so local git-history commands work without requiring extra `safe.directory` setup inside the container.
67+
6668
To run a command, mount the current working directory into the container:
6769

6870
```bash

0 commit comments

Comments
 (0)