Skip to content

Commit

Permalink
dockerfile: fix git dubious ownership / safe directory when using GH …
Browse files Browse the repository at this point in the history
…actions

Safety feature from git. Let's handle that in the container.

Signed-off-by: Hans Binderup <[email protected]>
  • Loading branch information
hansbinderup committed Feb 28, 2025
1 parent 2956454 commit b04eee2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@ WORKDIR /workspace
# Change ownership of the workspace to "user"
RUN chown -R user:user /workspace

# fix for dubious ownership when using Github Actions
RUN git config --global --add safe.directory /__w/meltdown-chess-engine

# Switch to the non-root user
USER user

0 comments on commit b04eee2

Please sign in to comment.