-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (16 loc) · 870 Bytes
/
Dockerfile
File metadata and controls
20 lines (16 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM alpine:latest
LABEL maintainer="kerta1n"
ARG SNAPCAST_VERSION=0.35.0-r0
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories \
&& echo "https://dl-cdn.alpinelinux.org/alpine/edge/community/" >> /etc/apk/repositories \
&& apk add --no-cache snapcast-server=${SNAPCAST_VERSION} sed curl unzip \
&& SNAPWEB_VERSION=$(curl -fsSL "https://api.github.com/repos/badaix/snapweb/releases/latest" \
| sed -n 's/.*"tag_name": "\([^"]*\)".*/\1/p') \
&& curl -fsSL "https://github.com/badaix/snapweb/releases/download/${SNAPWEB_VERSION}/snapweb.zip" \
-o /tmp/snapweb.zip \
&& mkdir -p /usr/share/snapserver/snapweb \
&& unzip -o /tmp/snapweb.zip -d /usr/share/snapserver/snapweb \
&& rm -f /tmp/snapweb.zip \
&& apk del curl sed unzip
CMD ["snapserver", "-c", "/etc/snapserver.conf"]
EXPOSE 1704/tcp 1705/tcp 1780/tcp