From 2df83d2b7ac1db7f7db8f8b69dac70633846a6f3 Mon Sep 17 00:00:00 2001 From: Daniel van der Ploeg Date: Mon, 22 Jan 2024 15:55:30 +1030 Subject: [PATCH] fix: disable safe directory check --- Dockerfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index e951aad..7722789 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,6 @@ ARG PHP_VERSION FROM php:${PHP_VERSION} as standards-runtime -RUN apt-mark hold git -RUN apt-mark hold git-man - RUN apt-get update RUN apt-get install -y unzip libpng-dev libicu-dev libxslt-dev jq git libzip-dev wget python3-venv RUN apt-get clean @@ -29,9 +26,7 @@ RUN python3 -m venv /venv RUN /venv/bin/pip install --no-cache-dir -r /requirements.txt # Allow git access to mounted build directories -RUN git config --global --add safe.directory /build +RUN git config --global --add safe.directory '*' RUN mkdir -p /opt/atlassian/pipelines/agent/build -RUN git config --global --add safe.directory /opt/atlassian/pipelines/agent/build -RUN git config --global --add safe.directory /github/workspace ENTRYPOINT ["/pipe.py"]