From 92766c7388d0fccdf6f614c02d8f44e1c633aa9e Mon Sep 17 00:00:00 2001 From: soroshsabz Date: Mon, 21 Mar 2022 01:48:11 +0330 Subject: [PATCH] [Docker] Fix broken gpg --verify and Dockerfile cleanup --- docker/master/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/master/Dockerfile b/docker/master/Dockerfile index a746af635b..e9b626b400 100644 --- a/docker/master/Dockerfile +++ b/docker/master/Dockerfile @@ -10,18 +10,17 @@ ARG TOKEN RUN groupadd -r freeswitch --gid=999 && useradd -r -g freeswitch --uid=999 freeswitch # grab gosu for easy step-down from root -RUN apt-get update && apt-get install -y --no-install-recommends dirmngr gnupg2 \ +RUN apt-get update && apt-get install -y --no-install-recommends dirmngr gnupg2 ca-certificates wget \ && gpg2 --keyserver hkp://keyserver.ubuntu.com --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \ && gpg2 --keyserver hkp://keyserver.ubuntu.com --recv-keys 655DA1341B5207915210AFE936B4249FA7B0FB03 \ && gpg2 --output /usr/share/keyrings/signalwire-freeswitch-repo.gpg --export 655DA1341B5207915210AFE936B4249FA7B0FB03 \ - && apt-get purge -y --auto-remove gnupg2 -RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* \ + && rm -rf /var/lib/apt/lists/* \ && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture)" \ && wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture).asc" \ && gpg --verify /usr/local/bin/gosu.asc \ && rm /usr/local/bin/gosu.asc \ && chmod +x /usr/local/bin/gosu \ - && apt-get purge -y --auto-remove ca-certificates wget + && apt-get purge -y --auto-remove ca-certificates wget dirmngr gnupg2 # make the "en_US.UTF-8" locale so freeswitch will be utf-8 enabled by default RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \