-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
15 lines (13 loc) · 726 Bytes
/
Dockerfile
File metadata and controls
15 lines (13 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Multi-staged build of Spotifyd on Alpine Linux
FROM arm32v7/alpine:latest AS build
WORKDIR /tmp
RUN apk update && apk add alsa-lib libvorbis libgcc openssl-dev alsa-lib-dev rust cargo && \
wget https://github.com/Spotifyd/spotifyd/archive/master.zip && \
unzip master.zip && cd spotifyd-master && cargo build --release -j 2
FROM arm32v7/alpine:latest
LABEL maintainer="np@bitbox.io"
RUN apk update && apk upgrade && apk add --no-cache alsa-lib libvorbis libgcc && rm -f /var/cache/apk/* && \
addgroup daemon audio && mkdir /var/cache/spotifyd && chown daemon.audio /var/cache/spotifyd
COPY --from=build /tmp/spotifyd-master/target/release/spotifyd /usr/bin/.
USER daemon
ENTRYPOINT ["/usr/bin/spotifyd", "--no-daemon"]