forked from jjok/my-mopidy-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (42 loc) · 1.64 KB
/
Dockerfile
File metadata and controls
56 lines (42 loc) · 1.64 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
ARG BUILD_FROM=debian:buster-slim
FROM $BUILD_FROM
RUN apt-get update \
&& apt-get install -y wget \
gnupg2 \
&& wget -q -O - https://apt.mopidy.com/mopidy.gpg | apt-key add - \
&& wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/buster.list
RUN apt-get update \
&& apt-get install -y libffi-dev \
libxml2-dev \
libxslt1-dev \
zlib1g-dev \
build-essential \
gstreamer1.0-alsa \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
python3-dev \
python3-gst-1.0 \
python3-lxml \
python3-pip \
python3-setuptools \
python3-wheel \
libasound2-dev \
libspotify-dev \
&& rm -rf /var/lib/apt/lists/*
# Add git to get some Mopidy stuff straight from Github
#RUN apt-get update \
# && apt-get install -y git \
# && rm -rf /var/lib/apt/lists/*
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt \
&& rm -rf ~/.cache/pip
RUN update-ca-certificates --fresh
COPY mopidy.conf /root/.config/mopidy/
# https://discourse.mopidy.com/t/spotify-login-error-errortype-unable-to-contact-server-8/4979/19
RUN echo "104.154.126.229 ap.spotify.com" >> /etc/hosts
RUN mkdir /root/music
VOLUME ["/root/.cache/mopidy", "/root/.local/share/mopidy", "/root/music"]
ENV TZ=Europe/London
EXPOSE 6600 6680
ENTRYPOINT ["mopidy"]