From 2984cbe9734ec1376217ed2edd349747492a43ff Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Sat, 26 Aug 2023 16:34:45 +0300 Subject: [PATCH] [Docker] Make Kavita executable at Build time instead of Runtime (#2228) * Fixes #1889 * also make entrypoint executable --- Dockerfile | 2 ++ entrypoint.sh | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a9eafdd7a7..0b4174d096 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,7 @@ COPY _output/*.tar.gz /files/ COPY UI/Web/dist /files/wwwroot COPY copy_runtime.sh /copy_runtime.sh RUN /copy_runtime.sh +RUN chmod +x /Kavita/Kavita #Production image FROM ubuntu:focal @@ -25,6 +26,7 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh EXPOSE 5000 diff --git a/entrypoint.sh b/entrypoint.sh index 2f55d5e3a5..798d19fd4c 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -27,11 +27,9 @@ if [ ! -f "/kavita/config/appsettings.json" ]; then fi fi -echo "App setting permissions" +echo "Starting Kavita" echo ls -l "/kavita/config/appsettings.json" -chmod +x Kavita - ./Kavita #if [[ "$PUID" -eq 0 ]]; then