Skip to content

Commit

Permalink
Download ejabberd via https and GPG check the downloaded executable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ypid committed Mar 29, 2015
1 parent 9961a2c commit 7650b36
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ RUN apt-get update \
USER $EJABBERD_USER

# Install ejabberd
RUN wget -q -O /tmp/ejabberd-installer.run "http://www.process-one.net/downloads/downloads-action.php?file=/ejabberd/$EJABBERD_VERSION/ejabberd-$EJABBERD_VERSION-linux-x86_64-installer.run" \
## --keyserver is required for debian wheezy (not for jessie).
RUN gpg --keyserver hkp://hkps.pool.sks-keyservers.net --recv-keys 31468D18DF9841242B90D7328ECA469419C09311 \
&& wget -q -O /tmp/ejabberd-installer.run.asc "https://www.process-one.net/downloads/downloads-action.php?file=/ejabberd/$EJABBERD_VERSION/ejabberd-$EJABBERD_VERSION-linux-x86_64-installer.run.asc" \
&& wget -q -O /tmp/ejabberd-installer.run "https://www.process-one.net/downloads/downloads-action.php?file=/ejabberd/$EJABBERD_VERSION/ejabberd-$EJABBERD_VERSION-linux-x86_64-installer.run" \
&& gpg --verify /tmp/ejabberd-installer.run.asc \
&& chmod +x /tmp/ejabberd-installer.run \
&& /tmp/ejabberd-installer.run \
--mode unattended \
Expand Down

0 comments on commit 7650b36

Please sign in to comment.