From b04eee29253616f035b25e13eb2ebe82f9fda159 Mon Sep 17 00:00:00 2001 From: Hans Binderup Date: Fri, 28 Feb 2025 15:50:41 +0100 Subject: [PATCH] dockerfile: fix git dubious ownership / safe directory when using GH actions Safety feature from git. Let's handle that in the container. Signed-off-by: Hans Binderup --- docker/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index d2f0740..c4fdb38 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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