From 4f87cf96d8f64f0b32e260c31c2a9df06a78d699 Mon Sep 17 00:00:00 2001 From: Mike Delago <32778141+michaeldelago@users.noreply.github.com> Date: Sat, 12 Aug 2023 11:48:17 -0400 Subject: [PATCH] fix(Apps/Docker): Git version resolution in docker build (#16379) fix git for docker build --- apps/docker/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/docker/Dockerfile b/apps/docker/Dockerfile index a0b02e746..fca5ec078 100644 --- a/apps/docker/Dockerfile +++ b/apps/docker/Dockerfile @@ -18,6 +18,9 @@ LABEL description="AC base image for dev containers" ENV DOCKER=1 +# Ensure ac-dev-server can properly pull versions +ENV GIT_DISCOVERY_ACROSS_FILESYSTEM=1 + # set timezone environment variable ENV TZ=Etc/UTC @@ -34,6 +37,9 @@ RUN apt-get update && apt-get install -y gdb gdbserver git dos2unix lsb-core sud libncurses5-dev ccache \ && rm -rf /var/lib/apt/lists/* +# Ensure git will work with the AzerothCore source directory +RUN git config --global --add safe.directory /azerothcore + # change timezone in container RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata