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

@ -47,7 +47,8 @@ RUN apt-get update -y \
libssl-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 the cross-toolchain
RUN if test "${PACKAGE_ARCH}" != "$( dpkg --print-architecture )"; then \

View File

@ -57,7 +57,8 @@ RUN apk add \
musl-dev \
nasm \
python3 \
git
git \
&& git config --global --add safe.directory /jellyfin/jellyfin-web
WORKDIR ${SOURCE_DIR}
COPY jellyfin-web .

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 \