[Docker] Make Kavita executable at Build time instead of Runtime (#2228)

* Fixes #1889

* also make entrypoint executable
This commit is contained in:
Stavros Kois 2023-08-26 16:34:45 +03:00 committed by GitHub
parent d4919463ca
commit 2984cbe973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

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