mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Apps/Docker): Git version resolution in docker build (#16379)
fix git for docker build
This commit is contained in:
@@ -18,6 +18,9 @@ LABEL description="AC base image for dev containers"
|
|||||||
|
|
||||||
ENV DOCKER=1
|
ENV DOCKER=1
|
||||||
|
|
||||||
|
# Ensure ac-dev-server can properly pull versions
|
||||||
|
ENV GIT_DISCOVERY_ACROSS_FILESYSTEM=1
|
||||||
|
|
||||||
# set timezone environment variable
|
# set timezone environment variable
|
||||||
ENV TZ=Etc/UTC
|
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 \
|
libncurses5-dev ccache \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& 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
|
# change timezone in container
|
||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user