Skip to content

Commit a5e24ac

Browse files
authored
fix: use dev version of librespot to fix CDN bug
librespot-org/librespot#1527
1 parent 4d0ccee commit a5e24ac

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
FROM ghcr.io/linuxserver/baseimage-alpine:edge AS librespot
2+
3+
ARG LIBRESPOT_COMMIT=ba3d501b08345aadf207d09b3a0713853228ba64
4+
5+
RUN apk add --no-cache alsa-lib-dev cargo curl alpine-sdk git coreutils cargo-auditable
6+
RUN curl "https://codeload.github.com/librespot-org/librespot/zip/${LIBRESPOT_COMMIT}" -o 'librespot.zip' && \
7+
unzip -qq 'librespot.zip' -d 'librespot' && \
8+
cd "librespot/librespot-${LIBRESPOT_COMMIT}" && \
9+
ls && \
10+
cargo fetch --locked && \
11+
cargo auditable build --release --frozen --features alsa-backend && \
12+
cp target/release/librespot /usr/bin/librespot
13+
114
FROM ghcr.io/linuxserver/baseimage-alpine:edge
215

316
ARG LIBRESPOT_VERSION=0.6.0-r0
@@ -9,6 +22,8 @@ RUN apk add --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community --
922
RUN apk add --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing --no-cache librespot=${LIBRESPOT_VERSION}
1023
RUN apk add --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing --no-cache snapweb=${SNAPWEB_VERSION}
1124

25+
COPY --from=0 /usr/bin/librespot /usr/bin/librespot
26+
1227
COPY root/ /
1328

1429
EXPOSE 1704/tcp 1705/tcp

0 commit comments

Comments
 (0)