Skip to content
This repository was archived by the owner on Nov 1, 2019. It is now read-only.

Commit e7a9f69

Browse files
committed
update(): alpine 3.7
1 parent 8993917 commit e7a9f69

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.6
1+
FROM alpine:3.7
22

33
LABEL description "PostfixAdmin is a web based interface used to manage mailboxes" \
44
maintainer="Hardware <contact@meshup.net>"
@@ -10,7 +10,7 @@ ARG VERSION=3.1
1010
ARG GPG_SHORTID="0xC6A682EA63C82F1C"
1111
ARG GPG_FINGERPRINT="70CA A060 DE04 2AAE B1B1 5196 C6A6 82EA 63C8 2F1C"
1212

13-
RUN echo "@community https://nl.alpinelinux.org/alpine/v3.6/community" >> /etc/apk/repositories \
13+
RUN echo "@community https://nl.alpinelinux.org/alpine/v3.7/community" >> /etc/apk/repositories \
1414
&& apk -U upgrade \
1515
&& apk add -t build-dependencies \
1616
ca-certificates \
@@ -29,12 +29,14 @@ RUN echo "@community https://nl.alpinelinux.org/alpine/v3.6/community" >> /etc/a
2929
&& PFA_TARBALL="postfixadmin-${VERSION}.tar.gz" \
3030
&& wget -q https://downloads.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-${VERSION}/${PFA_TARBALL} \
3131
&& wget -q https://downloads.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-${VERSION}/${PFA_TARBALL}.asc \
32-
&& gpg --keyserver pgp.mit.edu --recv-keys ${GPG_SHORTID} || \
32+
&& ( \
33+
gpg --keyserver pgp.mit.edu --recv-keys ${GPG_SHORTID} || \
3334
gpg --keyserver keyserver.pgp.com --recv-keys ${GPG_SHORTID} || \
3435
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys ${GPG_SHORTID} \
36+
) \
3537
&& FINGERPRINT="$(LANG=C gpg --verify ${PFA_TARBALL}.asc ${PFA_TARBALL} 2>&1 | sed -n "s#Primary key fingerprint: \(.*\)#\1#p")" \
36-
&& if [ -z "${FINGERPRINT}" ]; then echo "Warning! Invalid GPG signature!" && exit 1; fi \
37-
&& if [ "${FINGERPRINT}" != "${GPG_FINGERPRINT}" ]; then echo "Warning! Wrong GPG fingerprint!" && exit 1; fi \
38+
&& if [ -z "${FINGERPRINT}" ]; then echo "ERROR: Invalid GPG signature!" && exit 1; fi \
39+
&& if [ "${FINGERPRINT}" != "${GPG_FINGERPRINT}" ]; then echo "ERROR: Wrong GPG fingerprint!" && exit 1; fi \
3840
&& mkdir /postfixadmin && tar xzf ${PFA_TARBALL} -C /postfixadmin && mv /postfixadmin/postfixadmin-$VERSION/* /postfixadmin \
3941
&& apk del build-dependencies \
4042
&& rm -rf /var/cache/apk/* /tmp/* /root/.gnupg /postfixadmin/postfixadmin-$VERSION*

0 commit comments

Comments
 (0)