-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (14 loc) · 742 Bytes
/
Dockerfile
File metadata and controls
17 lines (14 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ARG DEBIAN_VERSION=bookworm
FROM debian:${DEBIAN_VERSION}
ARG TARGETARCH
ARG DEBIAN_VERSION
ARG SNAPCAST_VERSION=0.28.0
RUN apt-get update && apt-get install -y curl
RUN curl -vfL -o /tmp/snapserver.deb https://github.com/badaix/snapcast/releases/download/v${SNAPCAST_VERSION}/snapserver_${SNAPCAST_VERSION}-1_${TARGETARCH}-${DEBIAN_VERSION}.deb && \
curl -vfL -o /tmp/snapclient.deb https://github.com/badaix/snapcast/releases/download/v${SNAPCAST_VERSION}/snapclient_${SNAPCAST_VERSION}-1_${TARGETARCH}-${DEBIAN_VERSION}.deb && \
apt install -y /tmp/snapserver.deb /tmp/snapclient.deb
RUN rm -rf /var/lib/apt/lists/*
RUN useradd -m -s /bin/bash -u 1000 debian
USER debian
WORKDIR /home/debian
ENTRYPOINT ["/usr/bin/snapserver"]