dockerfiles/spotify/Dockerfile

44 lines
1.2 KiB
Docker
Raw Normal View History

2015-04-28 19:33:32 +02:00
# Run spotify in a container
#
# docker run -d \
# -v /etc/localtime:/etc/localtime:ro \
# -v /tmp/.X11-unix:/tmp/.X11-unix \
# -e DISPLAY=unix$DISPLAY \
# --device /dev/snd:/dev/snd \
# -v $HOME/.spotify/config:/home/spotify/.config/spotify \
# -v $HOME/.spotify/cache:/home/spotify/spotify \
# --name spotify \
# jess/spotify
2015-04-28 19:33:32 +02:00
#
FROM debian:sid-slim
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
2015-02-10 03:03:51 +01:00
RUN apt-get update && apt-get install -y \
dirmngr \
gnupg \
--no-install-recommends \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 931FF8E79F0876134EDDBDCCA87FF9DF48BF1C90 \
&& echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list.d/spotify.list \
&& apt-get update && apt-get install -y \
alsa-utils \
libgl1-mesa-dri \
libgl1-mesa-glx \
spotify-client \
xdg-utils \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
2015-02-10 03:03:51 +01: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" ]