-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.template
32 lines (26 loc) · 1.11 KB
/
Dockerfile.template
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
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian:stretch
# Install apt deps
RUN apt-get update && apt-get install -yq --no-install-recommends \
build-essential git xmltoman \
autoconf automake libtool libdaemon-dev libpopt-dev libconfig-dev \
libasound2-dev \
avahi-daemon libavahi-client-dev \
libssl-dev \
libnss-mdns \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
# Install shairport-sync
RUN git clone https://github.com/mikebrady/shairport-sync.git shairport-sync --depth 1 \
&& cd shairport-sync && autoreconf -i -f \
&& ./configure --sysconfdir=/etc --with-metadata --with-alsa --with-avahi --with-ssl=openssl --with-systemv \
&& make install \
&& cd ../ && rm -rf shairport-sync
# Install shairport-sync-metadata-reader
RUN git clone https://github.com/mikebrady/shairport-sync-metadata-reader.git shairport-sync-metadata-reader --depth 1 \
&& cd shairport-sync-metadata-reader && autoreconf -i -f \
&& ./configure \
&& make install \
&& cd ../ && rm -rf shairport-sync-metadata-reader
COPY . /usr/src/app
# Start app
CMD [ "bash", "/usr/src/app/start.sh" ]