mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
apps(docker): Fix Warnings in Dockerfile (#19537)
This commit is contained in:
@@ -8,7 +8,6 @@ FROM ubuntu:$UBUNTU_VERSION AS skeleton
|
|||||||
ARG DOCKER=1
|
ARG DOCKER=1
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
ENV TZ=$TZ
|
|
||||||
ENV AC_FORCE_CREATE_DB=1
|
ENV AC_FORCE_CREATE_DB=1
|
||||||
|
|
||||||
RUN mkdir -pv \
|
RUN mkdir -pv \
|
||||||
@@ -29,11 +28,12 @@ RUN mkdir -pv \
|
|||||||
/azerothcore/build
|
/azerothcore/build
|
||||||
|
|
||||||
# Configure Timezone
|
# Configure Timezone
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y tzdata ca-certificates \
|
&& apt-get install -y --no-install-recommends tzdata ca-certificates \
|
||||||
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
|
&& ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime \
|
||||||
&& echo $TZ > /etc/timezone \
|
&& echo "$TZ" > /etc/timezone \
|
||||||
&& dpkg-reconfigure --frontend noninteractive tzdata
|
&& dpkg-reconfigure --frontend noninteractive tzdata \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /azerothcore
|
WORKDIR /azerothcore
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ ENTRYPOINT ["/usr/bin/env", "bash", "/azerothcore/entrypoint.sh"]
|
|||||||
###############
|
###############
|
||||||
|
|
||||||
FROM runtime AS authserver
|
FROM runtime AS authserver
|
||||||
LABEL description "AzerothCore Auth Server"
|
LABEL description="AzerothCore Auth Server"
|
||||||
|
|
||||||
ENV ACORE_COMPONENT=authserver
|
ENV ACORE_COMPONENT=authserver
|
||||||
# Don't run database migrations. We can leave that up to the db-import container
|
# Don't run database migrations. We can leave that up to the db-import container
|
||||||
@@ -167,7 +167,7 @@ CMD ["authserver"]
|
|||||||
|
|
||||||
FROM runtime AS worldserver
|
FROM runtime AS worldserver
|
||||||
|
|
||||||
LABEL description "AzerothCore World Server"
|
LABEL description="AzerothCore World Server"
|
||||||
|
|
||||||
ENV ACORE_COMPONENT=worldserver
|
ENV ACORE_COMPONENT=worldserver
|
||||||
# Don't run database migrations. We can leave that up to the db-import container
|
# Don't run database migrations. We can leave that up to the db-import container
|
||||||
@@ -190,7 +190,7 @@ CMD ["worldserver"]
|
|||||||
|
|
||||||
FROM runtime AS db-import
|
FROM runtime AS db-import
|
||||||
|
|
||||||
LABEL description "AzerothCore Database Import tool"
|
LABEL description="AzerothCore Database Import tool"
|
||||||
|
|
||||||
USER $DOCKER_USER
|
USER $DOCKER_USER
|
||||||
|
|
||||||
@@ -203,7 +203,7 @@ COPY --chown=$DOCKER_USER:$DOCKER_USER\
|
|||||||
--from=build \
|
--from=build \
|
||||||
/azerothcore/env/dist/bin/dbimport /azerothcore/env/dist/bin/dbimport
|
/azerothcore/env/dist/bin/dbimport /azerothcore/env/dist/bin/dbimport
|
||||||
|
|
||||||
CMD /azerothcore/env/dist/bin/dbimport
|
CMD [ "/azerothcore/env/dist/bin/dbimport" ]
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# Client Data #
|
# Client Data #
|
||||||
@@ -225,7 +225,7 @@ VOLUME /azerothcore/env/dist/data
|
|||||||
|
|
||||||
USER $DOCKER_USER
|
USER $DOCKER_USER
|
||||||
|
|
||||||
CMD bash -c "source /azerothcore/apps/installer/includes/functions.sh && inst_download_client_data"
|
CMD ["bash", "-c", "source /azerothcore/apps/installer/includes/functions.sh && inst_download_client_data" ]
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# Map Extractors #
|
# Map Extractors #
|
||||||
@@ -233,7 +233,7 @@ CMD bash -c "source /azerothcore/apps/installer/includes/functions.sh && inst_do
|
|||||||
|
|
||||||
FROM runtime AS tools
|
FROM runtime AS tools
|
||||||
|
|
||||||
LABEL description "AzerothCore Tools"
|
LABEL description="AzerothCore Tools"
|
||||||
|
|
||||||
WORKDIR /azerothcore/env/dist/
|
WORKDIR /azerothcore/env/dist/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user