-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "gpg" usage to stop relying on deprecated and insecure behavior
- Loading branch information
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,6 @@ RUN useradd --create-home --home-dir $HOME user \ | |
|
||
ENV LANG C.UTF-8 | ||
|
||
# gpg: key DDBEF0E1: public key "The Irssi project <[email protected]>" imported | ||
RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 7EE65E3082A5FB06AC7C368D00CCB587DDBEF0E1 | ||
|
||
ENV IRSSI_VERSION 0.8.17 | ||
|
||
RUN buildDeps=' \ | ||
|
@@ -40,10 +37,14 @@ RUN buildDeps=' \ | |
&& rm -rf /var/lib/apt/lists/* \ | ||
&& curl -fsSL "https://github.com/irssi-import/irssi/releases/download/${IRSSI_VERSION}/irssi-${IRSSI_VERSION}.tar.bz2" -o /tmp/irssi.tar.bz2 \ | ||
&& curl -fsSL "https://github.com/irssi-import/irssi/releases/download/${IRSSI_VERSION}/irssi-${IRSSI_VERSION}.tar.bz2.sig" -o /tmp/irssi.tar.bz2.sig \ | ||
&& gpg --verify /tmp/irssi.tar.bz2.sig \ | ||
&& export GNUPGHOME="$(mktemp -d)" \ | ||
# gpg: key DDBEF0E1: public key "The Irssi project <[email protected]>" imported | ||
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 7EE65E3082A5FB06AC7C368D00CCB587DDBEF0E1 \ | ||
&& gpg --batch --verify /tmp/irssi.tar.bz2.sig /tmp/irssi.tar.bz2 \ | ||
&& rm -r "$GNUPGHOME" /tmp/irssi.tar.bz2.sig \ | ||
&& mkdir -p /usr/src/irssi \ | ||
&& tar -xjf /tmp/irssi.tar.bz2 -C /usr/src/irssi --strip-components 1 \ | ||
&& rm /tmp/irssi.tar.bz2* \ | ||
&& rm /tmp/irssi.tar.bz2 \ | ||
&& cd /usr/src/irssi \ | ||
&& ./configure \ | ||
--enable-true-color \ | ||
|