From f57616b10ec2e373854ec75dac67048b107b21bd Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 25 Mar 2023 18:03:46 +0300 Subject: [PATCH 1/5] Update spotify gpg url --- spotify/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotify/Dockerfile b/spotify/Dockerfile index 475c77e34..46843721f 100644 --- a/spotify/Dockerfile +++ b/spotify/Dockerfile @@ -19,7 +19,7 @@ RUN apt-get update && apt-get install -y \ dirmngr \ gnupg \ --no-install-recommends \ - && curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | apt-key add - \ + && curl -sS https://download.spotify.com/debian/pubkey_7A3A762FAFD4A51F.gpg | gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg \ && 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 \ From 995c2f257f60822c24405e42b344c36cb02b365c Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 25 Mar 2023 18:59:48 +0300 Subject: [PATCH 2/5] Updated to correct config and cache location and created the directories ahead of time, so that when volumes are created, they will have the correct permissions --- spotify/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spotify/Dockerfile b/spotify/Dockerfile index 46843721f..49f6a3dec 100644 --- a/spotify/Dockerfile +++ b/spotify/Dockerfile @@ -5,8 +5,8 @@ # -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 \ +# -v $HOME/.config/spotify:/home/spotify/.config/spotify \ +# -v $HOME/.cache/spotify:/home/spotify/.cache/spotify \ # --name spotify \ # jess/spotify # @@ -35,6 +35,7 @@ RUN apt-get update && apt-get install -y \ ENV HOME /home/spotify RUN useradd --create-home --home-dir $HOME spotify \ && gpasswd -a spotify audio \ + && mkdir $HOME/.config $HOME/.cache \ && chown -R spotify:spotify $HOME WORKDIR $HOME From 89cab7277207e50e109fb4ea9c160c72b36486d2 Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 25 Mar 2023 19:07:29 +0300 Subject: [PATCH 3/5] Added libcanberra-gtk3-module to remove "Failed to load" message --- spotify/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/spotify/Dockerfile b/spotify/Dockerfile index 49f6a3dec..b58429091 100644 --- a/spotify/Dockerfile +++ b/spotify/Dockerfile @@ -29,6 +29,7 @@ RUN apt-get update && apt-get install -y \ libsm6 \ spotify-client \ xdg-utils \ + libcanberra-gtk3-module \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/* From 9bb52f3d47494b343d26245135117ccd4c5c0a61 Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 26 Mar 2023 00:10:52 +0300 Subject: [PATCH 4/5] Added package to support japanese fonts --- spotify/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/spotify/Dockerfile b/spotify/Dockerfile index b58429091..d24c200d3 100644 --- a/spotify/Dockerfile +++ b/spotify/Dockerfile @@ -29,6 +29,7 @@ RUN apt-get update && apt-get install -y \ libsm6 \ spotify-client \ xdg-utils \ + fonts-droid-fallback \ libcanberra-gtk3-module \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/* From ca9bc8464d7a448729586f5dae7d623cbd244017 Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 26 Mar 2023 00:37:06 +0300 Subject: [PATCH 5/5] Removed no longer needed packages removed 9 MB from the image size --- spotify/Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/spotify/Dockerfile b/spotify/Dockerfile index d24c200d3..9c516a827 100644 --- a/spotify/Dockerfile +++ b/spotify/Dockerfile @@ -13,15 +13,14 @@ FROM debian:sid-slim LABEL maintainer "Jessie Frazelle " -RUN apt-get update && apt-get install -y \ +RUN apt-get update && apt-get install --no-install-recommends --yes \ ca-certificates \ curl \ dirmngr \ gnupg \ - --no-install-recommends \ && curl -sS https://download.spotify.com/debian/pubkey_7A3A762FAFD4A51F.gpg | gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg \ && echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list.d/spotify.list \ - && apt-get update && apt-get install -y \ + && apt-get update && apt-get install --no-install-recommends --yes \ alsa-utils \ libgl1-mesa-dri \ libgl1-mesa-glx \ @@ -31,7 +30,12 @@ RUN apt-get update && apt-get install -y \ xdg-utils \ fonts-droid-fallback \ libcanberra-gtk3-module \ - --no-install-recommends \ + && apt-get remove --yes \ + ca-certificates \ + curl \ + dirmngr \ + gnupg \ + && apt-get autoremove --yes \ && rm -rf /var/lib/apt/lists/* ENV HOME /home/spotify