Use apt-key adv instead of gpg directly.

This commit is contained in:
Marcus Brinkmann 2015-01-13 20:19:35 +01:00
parent 02c0dbb0f5
commit a96ebf1d28
1 changed files with 1 additions and 2 deletions

View File

@ -3,8 +3,7 @@ MAINTAINER Mike Purvis
# Instructions from: http://www.aptly.info/download/ # Instructions from: http://www.aptly.info/download/
RUN echo "deb http://repo.aptly.info/ squeeze main" > /etc/apt/sources.list.d/aptly.list; \ RUN echo "deb http://repo.aptly.info/ squeeze main" > /etc/apt/sources.list.d/aptly.list; \
gpg --keyserver keys.gnupg.net --recv-keys 2A194991; \ apt-key adv --keyserver keys.gnupg.net --recv-keys 2A194991; \
gpg -a --export 2A194991 | apt-key add -; \
apt-get update; \ apt-get update; \
apt-get install aptly -y apt-get install aptly -y