# Spotify on Alpine Linux

**URL:** <https://discourse.mopidy.com/t/spotify-on-alpine-linux/3859>\
**Category:** Misc\
**Created:** [March 24, 2020, 10:42pm UTC](https://discourse.mopidy.com/t/spotify-on-alpine-linux/3859 "2020-03-24T22:42:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjok](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jjok/32/448_2.png) [@jjok](https://discourse.mopidy.com/u/jjok)\
**Post date:** [March 24, 2020, 10:42pm UTC](https://discourse.mopidy.com/t/spotify-on-alpine-linux/3859/1 "2020-03-24T22:42:24Z")

</div>

I was going to see if I can switch from Debian-based Docker image to Alpine Linux, but I haven’t been able to install Spotify. Does anyone know if it’s possible to install pyspotify/libspotify on Alpine?

It isn’t mentioned in the installation instructions.

[https://pyspotify.readthedocs.io/en/latest/installation/#libspotify](https://pyspotify.readthedocs.io/en/latest/installation/#libspotify)

and it says

> If libspotify isn’t available for your OS or architecture, then you’re out of luck and can’t use pyspotify either.

So I’m guessing it isn’t possible.

Thanks.

---

<div class="post-metadata">

**Author:** ![trygveaa](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/trygveaa/32/16_2.png) [@trygveaa](https://discourse.mopidy.com/u/trygveaa)\
**Post date:** [March 31, 2020, 3:35pm UTC](https://discourse.mopidy.com/t/spotify-on-alpine-linux/3859/2 "2020-03-31T15:35:20Z")

</div>

libspotify is closed source and built against glibc, so you would have to find a way to run glibc programs on Alpine. [This page](https://wiki.alpinelinux.org/wiki/Running_glibc_programs) has some info, though it says it might be out of date. A google search gives me some docker images for Alpine with glibc as well. Not sure what the point is when you have to use glibc anyways though.

---

<div class="post-metadata">

**Author:** ![jjok](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jjok/32/448_2.png) [@jjok](https://discourse.mopidy.com/u/jjok)\
**Post date:** [April 1, 2020, 11:04pm UTC](https://discourse.mopidy.com/t/spotify-on-alpine-linux/3859/3 "2020-04-01T23:04:05Z")

</div>

Hmm. That all sounds a) over my head, and b) more hassle that it’s worth.  
I thought I might be able to reduce my Docker image size by using Alpine, but if it’s not something that ought to “just work” then I probably won’t bother.

Thanks for the info.
