Skip to content

Commit

Permalink
[Docker] Make Kavita executable at Build time instead of Runtime (Kar…
Browse files Browse the repository at this point in the history
…eadita#2228)

* Fixes Kareadita#1889

* also make entrypoint executable
  • Loading branch information
stavros-k authored Aug 26, 2023
1 parent d491946 commit 2984cbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
4 changes: 1 addition & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2984cbe

Please sign in to comment.