Sign inSign up

4f7a796d616e6469617334320a/librespot

By 4f7a796d616e6469617334320a

Updated about 4 years ago

Alpine Linux based container for librespot

Image
0

1.0K

4f7a796d616e6469617334320a/librespot repository overview

Alpine Linux based librespot container

This container uses the awesome librespot library to transform any docker host into a spotify connect device. The Dockerfile for this container is hosted on GitHub Ozymandias42/librespot-container

This container runs on all architectures on which the librespot package is available in the alpinelinux testing repository. At the time of this writing these are:

ArchitectureDevices
x86_64
x86old computers. <=2009
aarch64armv8 architectures and later. I.e. Raspberry Pi >3b
armhfRasbberry Pi OS 32bit version and Raspberry Pi <=3
armv7Raspberry Pi <=2
ppc64leold iBook Macintosh computers

How to run

Via docker run
#Note: use --net host to make sure broadcasting works without having to mess with macvlan networks.
docker run \
	--name librespot \
	--net host \
	--device /dev/snd \
	4f7a796d616e6469617334320a/librespot \
		/usr/bin/librespot \
			--name <NAME-OF-YOUR-SPOTIFY-CONNECT-DEVICE> \
			--bitrate <160,254,320> \
			--backend alsa \
			<--device YOUR-SND-DEVICE>
Via Compose File
Version 3.7

services:
  librespot:
    image: 4f7a796d616e6469617334320a/librespot 
    devices:
      - "/dev/snd:/dev/snd"
    network_mode: "host"
    entrypoint: ["/usr/bin/librespot"]
    command: [ "--name", "<YOUR-SPOTIFY-CONNECT>", "-b", "320", "--backend", "alsa", "--device", "default:CARD=Device"]

Tag summary

Content type

Image

Digest

sha256:808f6b04c

Size

8.8 MB

Last updated

about 4 years ago

docker pull 4f7a796d616e6469617334320a/librespot