-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
76 lines (73 loc) · 1.91 KB
/
Dockerfile
File metadata and controls
76 lines (73 loc) · 1.91 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM ghcr.io/linuxserver/baseimage-alpine:3.23
# set version label
ARG BUILD_DATE
ARG VERSION
ARG MOPIDY_RELEASE
LABEL build_version="version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sweisgerber"
#
# Alpine Mopidy install along with some extensions #################################################
#
RUN set -ex \
echo "**** setup apk testing mirror ****" \
&& echo "@testing https://nl.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories \
&& cat /etc/apk/repositories \
&& echo "**** install runtime packages ****" \
&& apk add --no-cache -U --upgrade \
alsa-utils \
build-base \
cairo \
cairo-dev \
dbus \
dbus-dev \
gobject-introspection \
gobject-introspection-dev \
gstreamer \
gstreamer-dev \
gst-plugins-base \
gst-plugins-good \
gst-plugins-ugly \
libxml2 \
python3 \
python3-dev \
py3-pip \
py3-virtualenv \
sudo
RUN python3 -m venv /lsiopy \
&& pip install -U --no-cache-dir pip wheel setuptools==81 \
&& echo "**** install mopidy extensions ****" \
&& pip install --no-cache-dir --upgrade \
Mopidy-Bandcamp \
Mopidy-Beets \
Mopidy-InternetArchive \
Mopidy-Iris \
Mopidy-Jellyfin \
Mopidy-Local \
Mopidy-MPD \
Mopidy-Podcast \
Mopidy-Scrobbler \
Mopidy-SomaFM \
Mopidy-Subidy \
Mopidy-Tidal \
Mopidy-TuneIn \
Mopidy-YTMusic \
Mopidy==${MOPIDY_RELEASE} \
PyGObject \
dbus-python \
pip \
pycairo \
pykka \
requests \
tornado \
&& echo "**** cleanup ****" \
&& rm -rf \
/tmp/*
# copy defaults & s6-overlay stuff
COPY root/ /
# ports ###########################################################################################
# mopidy-http default port
EXPOSE 6680
# mpd plugin default port
EXPOSE 6600
# volumes #########################################################################################
VOLUME /config /music /data