-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
40 lines (29 loc) · 1.14 KB
/
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
32
33
34
35
36
37
38
39
40
ARG BUILD_FROM
ARG ARCH
FROM $BUILD_FROM
ARG ARCH
RUN apt-get update \
&& apt-get install -y wget \
gstreamer1.0-alsa \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
gstreamer1.0-plugins-bad \
python3-gst-1.0 \
python3-lxml \
python3-pip \
python3-setuptools \
python3-wheel \
libasound2-dev \
&& rm -rf /var/lib/apt/lists/*
RUN wget -O gst-plugin-spotify.deb https://github.com/kingosticks/gst-plugins-rs-build/releases/download/gst-plugin-spotify_0.14.0-alpha.1-1/gst-plugin-spotify_0.14.0.alpha.1-1_${ARCH}.deb \
&& dpkg -i gst-plugin-spotify.deb
COPY requirements.txt requirements.txt
# RUN pip3 install -r requirements.txt \
RUN pip3 install --break-system-packages -r requirements.txt \
&& rm -rf ~/.cache/pip
RUN update-ca-certificates --fresh
RUN mkdir /root/music
VOLUME ["/root/.cache/mopidy", "/root/.local/share/mopidy", "/root/music"]
ENV TZ=Europe/London
EXPOSE 6600 6680
ENTRYPOINT ["mopidy"]