diff options
| author | Justin Fenn <buggito@gmail.com> | 2019-10-27 12:28:56 -0700 |
|---|---|---|
| committer | Justin Fenn <buggito@gmail.com> | 2019-10-27 12:28:56 -0700 |
| commit | 435c30aed9d066ab9bbbe268e80065dc928a9fc6 (patch) | |
| tree | 2d005aa7df15aa3858a2214b29353b2ce24960e4 /Dockerfile | |
| parent | c9f4a74af02e08b895cd6a8b8a408b1c0edfb6c4 (diff) | |
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.
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile index afa8152ff9..349d57ac07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,7 +42,7 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 EXPOSE 8096 VOLUME /cache /config /media -ENTRYPOINT ./jellyfin/jellyfin \ - --datadir /config \ - --cachedir /cache \ - --ffmpeg /usr/local/bin/ffmpeg +ENTRYPOINT ["./jellyfin/jellyfin", \ + "--datadir", "/config", \ + "--cachedir", "/cache", \ + "--ffmpeg", "/usr/local/bin/ffmpeg"] |
