From 72d8550c868267b0d66f0f88408c65350f46797a Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Mon, 9 Jan 2023 20:37:13 +0100 Subject: [PATCH] docker/entrypoint.sh -> docker-entrypoint.sh --- Dockerfile | 9 ++++----- docker/entrypoint.sh => docker-entrypoint.sh | 0 2 files changed, 4 insertions(+), 5 deletions(-) rename docker/entrypoint.sh => docker-entrypoint.sh (100%) diff --git a/Dockerfile b/Dockerfile index 1ef665d..b201581 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,10 +40,9 @@ RUN npm install COPY . . -# Shell scripts need Linux line endings. On Windows, git might be configured to check out dos/CRLF line endings, so we convert them for those people in case they want to build the image. -RUN dos2unix ./docker/*.sh -RUN mv ./docker/entrypoint.sh /usr/local/bin/entrypoint \ - && chmod +x /usr/local/bin/entrypoint +# Shell scripts need Linux line endings. On Windows, git might be configured to check out dos/CRLF line endings, so we convert them for those people in case they want to build the image. They could also use --config core.autocrlf=input +RUN dos2unix *.sh && chmod +x *.sh +COPY docker-entrypoint.sh /usr/local/bin/ # Configure VNC via environment variables: ENV VNC_PORT 5900 @@ -60,6 +59,6 @@ ENV DEPTH 24 ENV SHOW 1 # Script to setup display server & VNC is always executed. -ENTRYPOINT ["entrypoint"] +ENTRYPOINT ["docker-entrypoint.sh"] # Default command to run. This is replaced by appending own command, e.g. `docker run ... node prime-gaming` to only run this script. CMD node epic-games; node prime-gaming diff --git a/docker/entrypoint.sh b/docker-entrypoint.sh similarity index 100% rename from docker/entrypoint.sh rename to docker-entrypoint.sh