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:
Mike Delago
2023-11-14 11:36:27 -05:00
committed by GitHub
parent 5a4fdc7de4
commit 6e752c8720
2 changed files with 5 additions and 4 deletions

View File

@@ -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 #

View File

@@ -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