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:
parent
5a4fdc7de4
commit
6e752c8720
2 changed files with 5 additions and 4 deletions
|
|
@ -132,12 +132,13 @@ RUN groupadd --gid "$GROUP_ID" "$DOCKER_USER" && \
|
|||
passwd -d "$DOCKER_USER" && \
|
||||
chown -R "$DOCKER_USER:$DOCKER_USER" /azerothcore
|
||||
|
||||
COPY apps/docker/entrypoint.sh /entrypoint.sh
|
||||
RUN chmod -v +x /entrypoint.sh
|
||||
COPY --chown=$USER_ID:GROUP_ID \
|
||||
--chmod=755 \
|
||||
apps/docker/entrypoint.sh /azerothcore/entrypoint.sh
|
||||
|
||||
USER $DOCKER_USER
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
ENTRYPOINT ["/usr/bin/env", "bash", "/azerothcore/entrypoint.sh"]
|
||||
|
||||
###############
|
||||
# Auth Server #
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Copy all default config files to env/dist/etc if they don't already exist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue