-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
89 lines (87 loc) · 2.39 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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
FROM alpine:3.19.1
ARG OWNTONE_BRANCH=28.9
RUN apk --no-cache add --virtual=deps1 \
alsa-lib-dev \
autoconf \
automake \
avahi-dev \
bash \
bsd-compat-headers \
build-base \
confuse-dev \
curl \
curl-dev \
ffmpeg-dev \
file \
git \
gnutls-dev \
gperf \
json-c-dev \
libevent-dev \
libgcrypt-dev \
libplist-dev \
libsodium-dev \
libtool \
libunistring-dev \
libwebsockets-dev \
openjdk8-jre-base \
protobuf-c-dev \
sqlite-dev \
flex \
&& apk add --no-cache --virtual=deps2 --repository http://nl.alpinelinux.org/alpine/edge/testing \
mxml-dev \
&& apk add --no-cache \
avahi \
confuse \
dbus \
ffmpeg \
json-c \
libcurl \
libevent \
libgcrypt \
libplist \
libsodium \
libunistring \
protobuf-c \
sqlite \
sqlite-libs \
libwebsockets-dev \
libuuid \
&& apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/testing \
mxml \
bison \
flex \
#pulseaudio-libs \
&& cd /tmp \
&& git clone https://github.com/owntone/owntone-server.git \
&& cd /tmp/owntone-server \
&& git checkout "tags/$OWNTONE_BRANCH" \
&& autoreconf -i \
&& ./configure \
# --enable-chromecast \
--enable-itunes \
# --enable-mpd \
--disable-mpd \
--disable-spotify \
--infodir=/usr/share/info \
--localstatedir=/var \
--mandir=/usr/share/man \
--prefix=/usr \
--sysconfdir=/etc \
&& make \
&& make install \
&& apk del --purge deps1 deps2 \
&& rm -rf /usr/local/bin/antlr3 /tmp/* \
&& cd /etc \
&& sed -i -e 's/\(uid.*=.*\)/uid = "root"/g' owntone.conf \
&& sed -i s#"ipv6 = yes"#"ipv6 = no"#g owntone.conf \
&& sed -i s#/srv/music#/music#g owntone.conf \
&& sed -i s#/usr/local/var/cache/owntone/songs3.db#/config/cache/songs3.db#g owntone.conf \
&& sed -i s#/usr/local/var/cache/owntone/cache.db#/config/cache/cache.db#g owntone.conf \
&& sed -i s#/usr/local/var/log/owntone.log#/dev/stdout#g owntone.conf \
&& sed -i "/db_path\ =/ s/# *//" owntone.conf \
&& sed -i "/cache_path\ =/ s/# *//" owntone.conf
VOLUME /config /music
COPY owntone.sh /start
RUN chmod +x /start
ENTRYPOINT [ "/start" ]