diff --git a/Dockerfile b/Dockerfile index 13c35bf..02600ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,8 +23,8 @@ RUN apk add --no-cache \ USER mpv -WORKDIR /home/mpv +WORKDIR /home/mpv/media VOLUME ["/home/mpv/media"] -CMD ["mpv"] +CMD ["ash"] diff --git a/README.md b/README.md index c888fb9..5203517 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ -# mpv +# How to use this image + +## Start an MPV instance ```sh -docker run --rm \ +docker run --rm -i -t \ --device /dev/dri \ --network host \ --shm-size 2g \ @@ -9,5 +11,8 @@ docker run --rm \ -v /etc/machine-id:/etc/machine-id:ro \ -v /run/user/1000/pulse:/run/user/1000/pulse \ -v $HOME/.Xauthority:/home/mpv/.Xauthority \ + -v /path/to/your/media/:/home/mpv/media:ro \ mpv ``` + +where `/path/to/your/media` is the directory of the media files that you want to play.