Skip to content

docker build fails - librespot package version issue? #22

@mwild1

Description

@mwild1

Thanks for the project! I've been using it happily for years, practically daily :)

Unfortunately it broke recently, so I decided it was time to update. However I'm having difficulty getting the new version to build. I had some local modifications, but I just tried a clean clone of the repo and that also fails.

Building the latest revision on 2024-12-23, commit e31a64f, it fails to build:

# docker build --no-cache --progress=plain -t librespot-snapserver .
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.1s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 384B done
#2 DONE 0.1s

#3 [internal] load metadata for docker.io/library/alpine:3.17.1
#3 DONE 0.0s

#4 [1/4] FROM docker.io/library/alpine:3.17.1
#4 CACHED

#5 [internal] load build context
#5 transferring context: 28B done
#5 DONE 0.0s

#6 [2/4] RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories
#6 DONE 0.5s

#7 [3/4] RUN apk add --no-cache bash snapcast=0.26.0-r3 librespot=0.4.2-r4 sed
#7 0.483 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
#7 0.783 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
#7 1.089 fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
#7 1.840 ERROR: unable to select packages:
#7 1.980   librespot-0.6.0-r0:
#7 1.980     breaks: world[librespot=0.4.2-r4]
#7 ERROR: process "/bin/sh -c apk add --no-cache bash snapcast=${SNAPCAST_VERSION} librespot=${LIBRESPOT_VERSION} sed" did not complete successfully: exit code: 1
------
 > [3/4] RUN apk add --no-cache bash snapcast=0.26.0-r3 librespot=0.4.2-r4 sed:
#7 0.483 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
#7 0.783 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
#7 1.089 fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
#7 1.840 ERROR: unable to select packages:
#7 1.980   librespot-0.6.0-r0:
#7 1.980     breaks: world[librespot=0.4.2-r4]
------
Dockerfile:7
--------------------
   5 |     
   6 |     RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories
   7 | >>> RUN apk add --no-cache bash snapcast=${SNAPCAST_VERSION} librespot=${LIBRESPOT_VERSION} sed
   8 |     
   9 |     COPY run.sh /
--------------------
ERROR: failed to solve: process "/bin/sh -c apk add --no-cache bash snapcast=${SNAPCAST_VERSION} librespot=${LIBRESPOT_VERSION} sed" did not complete successfully: exit code: 1

What's the recommended solution here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions