fix(apps/docker): Include build ARGs in client-data (#25737)

This commit is contained in:
Tom Trumper
2026-07-15 11:23:11 +01:00
committed by GitHub
parent 8058c98e18
commit 4932429b1f

View File

@@ -225,9 +225,21 @@ LABEL description="AzerothCore client-data"
ENV DATAPATH=/azerothcore/env/dist/data
RUN apt-get update && \
apt-get install -y curl unzip && \
apt-get install -y curl unzip adduser && \
rm -rf /var/lib/apt/lists/*
ARG USER_ID=1000
ARG GROUP_ID=1000
ARG DOCKER_USER=acore
# To use GID/UID 1000 in ubuntu > 23.04 the existing user must be deleted
# See https://bugs.launchpad.net/cloud-images/+bug/2005129
RUN userdel --remove ubuntu \
&& addgroup --gid "$GROUP_ID" "$DOCKER_USER" \
&& adduser --disabled-password --gecos '' --uid "$USER_ID" --gid "$GROUP_ID" "$DOCKER_USER" \
&& passwd -d "$DOCKER_USER" \
&& chown -R "$DOCKER_USER:$DOCKER_USER" /azerothcore
COPY --chown=$DOCKER_USER:$DOCKER_USER apps apps
VOLUME /azerothcore/env/dist/data