-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
76 lines (70 loc) · 1.68 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
FROM alpine:edge
MAINTAINER Kevin Eye <[email protected]>
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories \
&& apk -U add \
bluez \
pulseaudio \
pulseaudio-bluez \
pulseaudio-utils \
pulseaudio-dev \
expect \
build-base \
curl \
alsa-lib-dev \
libdaemon-dev \
popt-dev \
libressl-dev \
soxr-dev \
avahi-dev \
libconfig-dev \
autoconf \
automake \
libtool \
&& echo 'load-module module-switch-on-connect' >> /etc/pulse/default.pa \
&& cd /tmp \
&& curl -L -O https://github.com/mikebrady/shairport-sync/archive/2.8.6.tar.gz \
&& tar xzvf 2.8.6.tar.gz\
&& cd shairport-sync-2.8.6 \
&& autoreconf -i -f \
&& ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--with-alsa \
--with-avahi \
--with-ssl=openssl \
--with-soxr \
--with-pulseaudio \
&& make \
&& make install \
&& cd / \
&& apk --purge del \
build-base \
curl \
alsa-lib-dev \
libdaemon-dev \
popt-dev \
libressl-dev \
soxr-dev \
avahi-dev \
libconfig-dev \
autoconf \
automake \
libtool \
pulseaudio-dev \
&& apk add \
libdaemon \
popt \
soxr \
libconfig \
avahi \
pulseaudio-libs \
&& rm -rf /var/cache/apk* /lib/apk/db/* /etc/ssl /tmp/*
ENV HOME /root
ENV BT_DEVICE ""
ENV BT_PIN "0000"
ENV AIRPLAY_NAME "Docker"
CMD [ "/app/init.sh" ]
ADD app /app