Skip to content

Commit

Permalink
updating the README
Browse files Browse the repository at this point in the history
  • Loading branch information
cremuzzi committed Jul 21, 2020
1 parent 11ea605 commit 0784cb9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# 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 \
-e DISPLAY=$DISPLAY \
-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.

0 comments on commit 0784cb9

Please sign in to comment.