diff --git a/docker/Dockerfile b/docker/Dockerfile index 09cdbf6..56aae98 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -13,5 +13,10 @@ VOLUME /media HEALTHCHECK CMD wget -q http://localhost:8096/swagger -O /dev/null || exit 1 -COPY entrypoint.sh /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] +ENTRYPOINT \ + chown $PUID:$PGID /config /media && \ + su-exec $PUID:$PGID \ + mono /emby/MediaBrowser.Server.Mono.exe \ + -programdata /config \ + -ffmpeg /usr/bin/ffmpeg \ + -ffprobe /usr/bin/ffprobe diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh deleted file mode 100755 index 60ae4a0..0000000 --- a/docker/entrypoint.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -chown $PUID:$PGID /config /media -su-exec $PUID:$PGID \ - mono /emby/MediaBrowser.Server.Mono.exe \ - -programdata /config \ - -ffmpeg /usr/bin/ffmpeg \ - -ffprobe /usr/bin/ffprobe