fix(apps/docker): Include build ARGs in client-data (#25737)
This commit is contained in:
+13
-1
@@ -225,9 +225,21 @@ LABEL description="AzerothCore client-data"
|
|||||||
ENV DATAPATH=/azerothcore/env/dist/data
|
ENV DATAPATH=/azerothcore/env/dist/data
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y curl unzip && \
|
apt-get install -y curl unzip adduser && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
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
|
COPY --chown=$DOCKER_USER:$DOCKER_USER apps apps
|
||||||
|
|
||||||
VOLUME /azerothcore/env/dist/data
|
VOLUME /azerothcore/env/dist/data
|
||||||
|
|||||||
Reference in New Issue
Block a user