fix(Apps/Docker): Git version resolution in docker build (#16379)

fix git for docker build
This commit is contained in:
Mike Delago
2023-08-12 11:48:17 -04:00
committed by GitHub
parent 1209d61565
commit 4f87cf96d8

View File

@@ -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