-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (25 loc) · 960 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
FROM rust:1.45 AS librespot
RUN apt-get update && apt-get --yes install \
build-essential \
libasound2-dev \
&& apt-get clean && rm -fR /var/lib/apt/lists
RUN cargo install librespot
FROM debian:buster
ARG ARCH=amd64
ARG SNAPCAST_VERSION=0.23.0
EXPOSE 1704 1705 1780
RUN apt-get update && apt-get install --yes --no-install-recommends \
ca-certificates \
curl \
libasound2 \
mpv \
avahi-daemon \
gettext \
&& curl -L -o /tmp/snapserver.deb "https://github.com/badaix/snapcast/releases/download/v${SNAPCAST_VERSION}/snapserver_${SNAPCAST_VERSION}-1_${ARCH}.deb" \
&& dpkg -i /tmp/snapserver.deb || apt-get install -f -y --no-install-recommends \
&& apt-get clean && rm -fR /var/lib/apt/lists
COPY --from=librespot /usr/local/cargo/bin/librespot /usr/local/bin/
COPY ./entrypoint.sh ./entrypoint.sh
RUN printf "[server]\nenable-dbus=no\n" >> /etc/avahi/avahi-daemon.conf
RUN chmod +x ./entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]