https://github.com/tmigone/librespot-docker
Docker images for librespot's Spotify client library
https://github.com/tmigone/librespot-docker
alpine balena librespot spotify
Last synced: 4 months ago
JSON representation
Docker images for librespot's Spotify client library
- Host: GitHub
- URL: https://github.com/tmigone/librespot-docker
- Owner: tmigone
- Created: 2021-12-21T19:14:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-01T16:28:23.000Z (almost 3 years ago)
- Last Synced: 2024-10-19T19:59:32.107Z (7 months ago)
- Topics: alpine, balena, librespot, spotify
- Language: Shell
- Homepage: https://hub.docker.com/r/tmigone/librespot
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# librespot-docker
Docker images for [librespot's](https://github.com/librespot-org/librespot) Spotify client library.
**Features**
- _Multiple architectures supported_: linux/arm/v6, linux/arm/v7, linux/arm64 and linux/amd64.
- _Versioned images_: each librespot release gets built and a new image tag is added. Previous images are not deleted.
- _Minimal footprint_: uses balenalib alpine [base images](https://www.balena.io/docs/reference/base-images/base-images/) for lightweight images__Note:__ These images were built to be used mainly with [balenaOS](https://www.balena.io/os) however they can be used with any other OS without problem. If further instructions are needed please [open an issue](https://github.com/tmigone/librespot-docker/issues/new).
## Usage
Images are built and published to [Docker Hub](https://hub.docker.com/r/tmigone/librespot). The following images are available:
- With alsa-backend: `tmigone/librespot:`
- With pulseaudio-backend: `tmigone/librespot:-pulseaudio`For a detailed list of available tags visit: https://hub.docker.com/r/tmigone/librespot/tags
**docker-compose.yml**
```yaml
version: '2'volumes:
spotifycache:services:
spotify:
image: tmigone/librespot:0.3.1
privileged: true
network_mode: host
command: /usr/bin/librespot
volumes:
- spotifycache:/var/cache/raspotify
```**Extend dockerfile**
```Dockerfile
FROM tmigone/librespot:0.3.1-pulseaudio
ENV PULSE_SERVER=tcp:localhost:4317CMD [ "/usr/bin/librespot", "--name=spotiplayer" ]
```**Options**
For more information about the available options, please refer to the [librespot documentation](https://github.com/librespot-org/librespot/wiki/Options).