2015-04-28 19:33:32 +02:00
|
|
|
# Run spotify in a container
|
|
|
|
#
|
|
|
|
# docker run -d \
|
2015-06-05 19:24:11 +02:00
|
|
|
# -v /etc/localtime:/etc/localtime:ro \
|
|
|
|
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
|
|
# -e DISPLAY=unix$DISPLAY \
|
|
|
|
# --device /dev/snd:/dev/snd \
|
2015-06-11 21:14:31 +02:00
|
|
|
# -v $HOME/.spotify/config:/home/spotify/.config/spotify \
|
|
|
|
# -v $HOME/.spotify/cache:/home/spotify/spotify \
|
2015-06-05 19:24:11 +02:00
|
|
|
# --name spotify \
|
|
|
|
# jess/spotify
|
2015-04-28 19:33:32 +02:00
|
|
|
#
|
2016-04-05 22:54:36 +02:00
|
|
|
FROM debian:sid
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-02-10 03:03:51 +01:00
|
|
|
|
2016-08-12 03:55:48 +02:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2016-08-13 21:59:04 +02:00
|
|
|
dirmngr \
|
2016-08-12 03:55:48 +02:00
|
|
|
gnupg \
|
|
|
|
--no-install-recommends \
|
2017-11-13 16:45:34 +01:00
|
|
|
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 \
|
2016-04-05 22:54:36 +02:00
|
|
|
&& echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list.d/spotify.list \
|
2016-08-29 00:18:08 +02:00
|
|
|
&& echo "deb http://ftp.de.debian.org/debian jessie main " >> /etc/apt/sources.list.d/workaround.list \
|
2016-04-05 22:54:36 +02:00
|
|
|
&& apt-get update && apt-get install -y \
|
2015-06-05 19:24:11 +02:00
|
|
|
alsa-utils \
|
2016-04-05 22:54:36 +02:00
|
|
|
libgl1-mesa-dri \
|
|
|
|
libgl1-mesa-glx \
|
2016-03-31 02:49:04 +02:00
|
|
|
libpangoxft-1.0-0 \
|
2017-08-03 20:07:27 +02:00
|
|
|
libpulse0 \
|
2016-08-29 00:18:08 +02:00
|
|
|
libssl1.0.0 \
|
2016-08-12 03:55:48 +02:00
|
|
|
libssl1.0.2 \
|
2016-04-05 22:54:36 +02:00
|
|
|
libxss1 \
|
|
|
|
spotify-client \
|
2016-03-31 02:49:04 +02:00
|
|
|
xdg-utils \
|
|
|
|
--no-install-recommends \
|
2015-06-07 02:48:44 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2015-02-10 03:03:51 +01:00
|
|
|
|
2015-06-11 21:14:31 +02:00
|
|
|
ENV HOME /home/spotify
|
|
|
|
RUN useradd --create-home --home-dir $HOME spotify \
|
|
|
|
&& gpasswd -a spotify audio \
|
|
|
|
&& chown -R spotify:spotify $HOME
|
|
|
|
|
|
|
|
WORKDIR $HOME
|
|
|
|
USER spotify
|
|
|
|
|
|
|
|
# make search bar text better
|
|
|
|
RUN echo "QLineEdit { color: #000 }" > /home/spotify/spotify-override.css
|
|
|
|
|
|
|
|
ENTRYPOINT [ "spotify" ]
|
|
|
|
CMD [ "-stylesheet=/home/spotify/spotify-override.css" ]
|