From b7e3dd099f8a170716f525717efe68327f82937c Mon Sep 17 00:00:00 2001 From: Omar Siam Date: Tue, 29 Oct 2024 13:59:30 +0100 Subject: [PATCH] Try to set /app as safe system wide --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index db395b1..d2f82b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,12 +11,11 @@ COPY . /app RUN groupadd --gid $USER_GID $USERNAME \ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ && apt update && apt -y full-upgrade && apt install -y git && pip3 install poetry && apt clean \ - && poetry config virtualenvs.create false && poetry install --no-dev && poetry cache clear --all . + && poetry config virtualenvs.create false && poetry install --no-dev && poetry cache clear --all . \ + && git config --system --add safe.directory /app USER app -RUN git config --global --add safe.directory /app - CMD ["fastapi", "run", "releven.py", "--port", "5000", "--proxy-headers"] EXPOSE 5000