-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (25 loc) · 952 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM alpine:3.18.4
LABEL maintainer="niawag <[email protected]>"
LABEL org.label-schema.description="Containerization of mpv.io"
LABEL org.label-schema.name="mpv"
LABEL org.label-schema.schema-version="0.0.3"
LABEL org.label-schema.vcs-url="https://github.com/niawag/docker-mpv"
RUN apk add --no-cache \
ffmpeg \
mpv \
pulseaudio \
python3 \
&& adduser -u 1026 -S -D mpv -G 100 \
&& mkdir -p /home/mpv/ \
&& mkdir -p /data/ \
&& mkdir -p /home/mpv/.config/pulse \
&& echo "default-server = unix:/run/user/1026/pulse/native" > /home/mpv/.config/pulse/client.conf \
&& echo "autospawn = no" >> /home/mpv/.config/pulse/client.conf \
&& echo "daemon-binary = /bin/true" >> /home/mpv/.config/pulse/client.conf \
&& echo "enable-shm = false" >> /home/mpv/.config/pulse/client.conf \
&& mkdir -p /home/mpv/.config/mpv \
&& chown -R 1026:100 /home/mpv
USER mpv
WORKDIR /home/mpv/
VOLUME ["/data"]
CMD ["ash"]