aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.arm64
diff options
context:
space:
mode:
authorAndrew Rabert <ar@nullsum.net>2019-02-16 15:25:44 -0500
committerAndrew Rabert <ar@nullsum.net>2019-02-16 15:25:44 -0500
commitc06598635f2637dc60e022825e7a81bdae88a650 (patch)
tree647268715400ecc7550ddb100b285f44036c9677 /Dockerfile.arm64
parenta15098dc0007c54ac30cf851043c9102b9c82104 (diff)
Fix cachedir missing from Docker container
Adds the /cache volume and set it to writeable by all. This allows for those using jellyfin to continue using it without modifying their config. However, retaining cache will require one to mount the /cache volume. Also make the /config and /media dirs 777 by default. No permissions on mounted volumes will be changed.
Diffstat (limited to 'Dockerfile.arm64')
-rw-r--r--Dockerfile.arm648
1 files changed, 5 insertions, 3 deletions
diff --git a/Dockerfile.arm64 b/Dockerfile.arm64
index 3175c950c..e61aaa167 100644
--- a/Dockerfile.arm64
+++ b/Dockerfile.arm64
@@ -28,8 +28,10 @@ RUN dotnet publish \
FROM microsoft/dotnet:${DOTNET_VERSION}-runtime-stretch-slim-arm64v8
COPY --from=qemu_extract qemu-aarch64-static /usr/bin
RUN apt-get update \
- && apt-get install --no-install-recommends --no-install-suggests -y ffmpeg
+ && apt-get install --no-install-recommends --no-install-suggests -y ffmpeg \
+ && mkdir -p /cache /config /media \
+ && chmod 777 /cache /config /media
COPY --from=builder /jellyfin /jellyfin
EXPOSE 8096
-VOLUME /config /media
-ENTRYPOINT dotnet /jellyfin/jellyfin.dll --datadir /config
+VOLUME /cache /config /media
+ENTRYPOINT dotnet /jellyfin/jellyfin.dll --datadir /config --cachedir /cache