mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 09:59:06 -07:00
use exec form for Dockerfile entrypoint
This causes the jellyfin process to be pid 1 in the container. It can receive signals like SIGTERM (from "docker stop", for example) and shut down properly.
This commit is contained in:
parent
c9f4a74af0
commit
435c30aed9
@ -42,7 +42,7 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
|
|||||||
|
|
||||||
EXPOSE 8096
|
EXPOSE 8096
|
||||||
VOLUME /cache /config /media
|
VOLUME /cache /config /media
|
||||||
ENTRYPOINT ./jellyfin/jellyfin \
|
ENTRYPOINT ["./jellyfin/jellyfin", \
|
||||||
--datadir /config \
|
"--datadir", "/config", \
|
||||||
--cachedir /cache \
|
"--cachedir", "/cache", \
|
||||||
--ffmpeg /usr/local/bin/ffmpeg
|
"--ffmpeg", "/usr/local/bin/ffmpeg"]
|
||||||
|
@ -38,7 +38,7 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
|
|||||||
|
|
||||||
EXPOSE 8096
|
EXPOSE 8096
|
||||||
VOLUME /cache /config /media
|
VOLUME /cache /config /media
|
||||||
ENTRYPOINT ./jellyfin/jellyfin \
|
ENTRYPOINT ["./jellyfin/jellyfin", \
|
||||||
--datadir /config \
|
"--datadir", "/config", \
|
||||||
--cachedir /cache \
|
"--cachedir", "/cache", \
|
||||||
--ffmpeg /usr/bin/ffmpeg
|
"--ffmpeg", "/usr/bin/ffmpeg"]
|
||||||
|
@ -38,7 +38,7 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
|
|||||||
|
|
||||||
EXPOSE 8096
|
EXPOSE 8096
|
||||||
VOLUME /cache /config /media
|
VOLUME /cache /config /media
|
||||||
ENTRYPOINT ./jellyfin/jellyfin \
|
ENTRYPOINT ["./jellyfin/jellyfin", \
|
||||||
--datadir /config \
|
"--datadir", "/config", \
|
||||||
--cachedir /cache \
|
"--cachedir", "/cache", \
|
||||||
--ffmpeg /usr/bin/ffmpeg
|
"--ffmpeg", "/usr/bin/ffmpeg"]
|
||||||
|
Loading…
Reference in New Issue
Block a user