[Docker] Make Kavita executable at Build time instead of Runtime (#2228)
* Fixes #1889 * also make entrypoint executable
This commit is contained in:
parent
d4919463ca
commit
2984cbe973
2 changed files with 3 additions and 3 deletions
|
@ -11,6 +11,7 @@ COPY _output/*.tar.gz /files/
|
||||||
COPY UI/Web/dist /files/wwwroot
|
COPY UI/Web/dist /files/wwwroot
|
||||||
COPY copy_runtime.sh /copy_runtime.sh
|
COPY copy_runtime.sh /copy_runtime.sh
|
||||||
RUN /copy_runtime.sh
|
RUN /copy_runtime.sh
|
||||||
|
RUN chmod +x /Kavita/Kavita
|
||||||
|
|
||||||
#Production image
|
#Production image
|
||||||
FROM ubuntu:focal
|
FROM ubuntu:focal
|
||||||
|
@ -25,6 +26,7 @@ RUN apt-get update \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
|
|
|
@ -27,11 +27,9 @@ if [ ! -f "/kavita/config/appsettings.json" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "App setting permissions"
|
echo "Starting Kavita"
|
||||||
echo ls -l "/kavita/config/appsettings.json"
|
echo ls -l "/kavita/config/appsettings.json"
|
||||||
|
|
||||||
chmod +x Kavita
|
|
||||||
|
|
||||||
./Kavita
|
./Kavita
|
||||||
|
|
||||||
#if [[ "$PUID" -eq 0 ]]; then
|
#if [[ "$PUID" -eq 0 ]]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue