-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (38 loc) · 817 Bytes
/
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
FROM balenalib/raspberry-pi-debian:buster
RUN apt-get update && apt-get upgrade
RUN apt-get install -y \
build-essential \
git \
xmltoman \
autoconf \
automake \
avahi-daemon \
libavahi-client-dev \
libtool \
libpopt-dev \
libconfig-dev \
libasound2-dev \
libssl-dev
RUN git clone https://github.com/mikebrady/shairport-sync.git
WORKDIR shairport-sync
RUN autoreconf -fi
RUN ./configure \
--sysconfdir=/etc \
--with-alsa \
--with-avahi \
--with-ssl=openssl
RUN make -j $(nproc)
RUN make install
WORKDIR /
RUN rm -rf shairport-sync
RUN apt-get remove -y \
build-essential \
git \
xmltoman \
autoconf \
automake
COPY etc/shairport-sync.conf /etc/shairport-sync.conf
COPY start.sh /start.sh
RUN chmod +x /start.sh
ENV AIRPLAY_NAME $(hostname)
ENTRYPOINT [ "/start.sh" ]