File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ RUN apk add --no-cache \
2323
2424USER mpv
2525
26- WORKDIR /home/mpv
26+ WORKDIR /home/mpv/media
2727
2828VOLUME ["/home/mpv/media" ]
2929
30- CMD ["mpv " ]
30+ CMD ["ash " ]
Original file line number Diff line number Diff line change 1- # mpv
1+ # How to use this image
2+
3+ ## Start an MPV instance
24
35``` sh
4- docker run --rm \
6+ docker run --rm -i -t \
57 --device /dev/dri \
68 --network host \
79 --shm-size 2g \
810 -e DISPLAY=$DISPLAY \
911 -v /etc/machine-id:/etc/machine-id:ro \
1012 -v /run/user/1000/pulse:/run/user/1000/pulse \
1113 -v $HOME /.Xauthority:/home/mpv/.Xauthority \
14+ -v /path/to/your/media/:/home/mpv/media:ro \
1215 mpv
1316```
17+
18+ where ` /path/to/your/media ` is the directory of the media files that you want to play.
You can’t perform that action at this time.
0 commit comments