mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Docker): Tweak entrypoint permissions (#17698)
* fix(Docker): Fix entrypoint permissions * use entrypoint.sh as an argument to bash * attempt to use more specified filepaths
This commit is contained in:
@@ -132,12 +132,13 @@ RUN groupadd --gid "$GROUP_ID" "$DOCKER_USER" && \
|
|||||||
passwd -d "$DOCKER_USER" && \
|
passwd -d "$DOCKER_USER" && \
|
||||||
chown -R "$DOCKER_USER:$DOCKER_USER" /azerothcore
|
chown -R "$DOCKER_USER:$DOCKER_USER" /azerothcore
|
||||||
|
|
||||||
COPY apps/docker/entrypoint.sh /entrypoint.sh
|
COPY --chown=$USER_ID:GROUP_ID \
|
||||||
RUN chmod -v +x /entrypoint.sh
|
--chmod=755 \
|
||||||
|
apps/docker/entrypoint.sh /azerothcore/entrypoint.sh
|
||||||
|
|
||||||
USER $DOCKER_USER
|
USER $DOCKER_USER
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/usr/bin/env", "bash", "/azerothcore/entrypoint.sh"]
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# Auth Server #
|
# Auth Server #
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# Copy all default config files to env/dist/etc if they don't already exist
|
# Copy all default config files to env/dist/etc if they don't already exist
|
||||||
|
|||||||
Reference in New Issue
Block a user