This repository has been archived by the owner on Nov 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
12 additions
and
6 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 |
---|---|---|
|
@@ -3,12 +3,13 @@ FROM alpine:3.7 | |
LABEL description "PostfixAdmin is a web based interface used to manage mailboxes" \ | ||
maintainer="Hardware <[email protected]>" | ||
|
||
ARG VERSION=3.1 | ||
ARG VERSION=3.2 | ||
|
||
# https://pgp.mit.edu/pks/lookup?search=0xC6A682EA63C82F1C&fingerprint=on&op=index | ||
# pub 4096R/63C82F1C 2005-10-06 Christian Boltz (www.cboltz.de) <[email protected]> | ||
ARG GPG_SHORTID="0xC6A682EA63C82F1C" | ||
ARG GPG_FINGERPRINT="70CA A060 DE04 2AAE B1B1 5196 C6A6 82EA 63C8 2F1C" | ||
ARG SHA256_HASH="866d4c0ca870b2cac184e5837a4d201af8fcefecef09bc2c887a6e017a00cefe" | ||
|
||
RUN echo "@community https://nl.alpinelinux.org/alpine/v3.7/community" >> /etc/apk/repositories \ | ||
&& apk -U upgrade \ | ||
|
@@ -20,6 +21,7 @@ RUN echo "@community https://nl.alpinelinux.org/alpine/v3.7/community" >> /etc/a | |
dovecot \ | ||
tini@community \ | ||
php7@community \ | ||
php7-phar \ | ||
php7-fpm@community \ | ||
php7-imap@community \ | ||
php7-pgsql@community \ | ||
|
@@ -35,6 +37,8 @@ RUN echo "@community https://nl.alpinelinux.org/alpine/v3.7/community" >> /etc/a | |
gpg --keyserver keyserver.pgp.com --recv-keys ${GPG_SHORTID} || \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys ${GPG_SHORTID} \ | ||
) \ | ||
&& CHECKSUM=$(sha256sum ${PFA_TARBALL} | awk '{print $1}') \ | ||
&& if [ "${CHECKSUM}" != "${SHA256_HASH}" ]; then echo "ERROR: Checksum does not match!" && exit 1; fi \ | ||
&& FINGERPRINT="$(LANG=C gpg --verify ${PFA_TARBALL}.asc ${PFA_TARBALL} 2>&1 | sed -n "s#Primary key fingerprint: \(.*\)#\1#p")" \ | ||
&& if [ -z "${FINGERPRINT}" ]; then echo "ERROR: Invalid GPG signature!" && exit 1; fi \ | ||
&& if [ "${FINGERPRINT}" != "${GPG_FINGERPRINT}" ]; then echo "ERROR: Wrong GPG fingerprint!" && exit 1; fi \ | ||
|
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
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