Add safe.directory for jellyfin-web

Ensures that the `git` command to obtain the commit hash works properly.
This commit is contained in:
Joshua M. Boniface
2024-11-21 14:21:43 -05:00
parent deaf5b96c5
commit 22f1a26ee7
3 changed files with 6 additions and 3 deletions

View File

@@ -44,7 +44,8 @@ RUN apt-get update -y \
libfreetype*-dev \
&& apt-get clean autoclean -y \
&& apt-get autoremove -y \
&& rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
&& rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* \
&& git config --global --add safe.directory /jellyfin/jellyfin-web
# Prepare dotnet SDK
RUN wget https://packages.microsoft.com/config/${PACKAGE_TYPE}/${PACKAGE_VERSION}/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \