From ca9bc8464d7a448729586f5dae7d623cbd244017 Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 26 Mar 2023 00:37:06 +0300 Subject: [PATCH] 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 d24c200..9c516a8 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