forked from hardware/postfixadmin
-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
727a589
commit a5cabda
Showing
1 changed file
with
23 additions
and
23 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 |
---|---|---|
@@ -1,34 +1,34 @@ | ||
FROM alpine:3.12 | ||
|
||
LABEL description="PostfixAdmin is a web based interface used to manage mailboxes" \ | ||
maintainer="Hardware <[email protected]>" | ||
maintainer="Hardware <[email protected]>" | ||
|
||
ARG VERSION=3.2.4 | ||
ARG SHA256_HASH="f61a64b32052c46f40cba466e5e384de0efab8c343c91569bcc5ebfd3694811e" | ||
|
||
RUN set -eux; \ | ||
apk add --no-cache \ | ||
su-exec \ | ||
dovecot \ | ||
tini \ | ||
\ | ||
php7 \ | ||
php7-fpm \ | ||
php7-imap \ | ||
php7-mbstring \ | ||
php7-mysqli \ | ||
php7-pgsql \ | ||
php7-phar \ | ||
php7-session \ | ||
; \ | ||
\ | ||
PFA_TARBALL="postfixadmin-${VERSION}.tar.gz"; \ | ||
wget -q https://github.com/postfixadmin/postfixadmin/archive/${PFA_TARBALL}; \ | ||
echo "${SHA256_HASH} *${PFA_TARBALL}" | sha256sum -c; \ | ||
\ | ||
mkdir /postfixadmin; \ | ||
tar -xzf ${PFA_TARBALL} --strip-components=1 -C /postfixadmin; \ | ||
rm -f ${PFA_TARBALL} | ||
apk add --no-cache \ | ||
su-exec \ | ||
dovecot \ | ||
tini \ | ||
\ | ||
php7 \ | ||
php7-fpm \ | ||
php7-imap \ | ||
php7-mbstring \ | ||
php7-mysqli \ | ||
php7-pgsql \ | ||
php7-phar \ | ||
php7-session \ | ||
; \ | ||
\ | ||
PFA_TARBALL="postfixadmin-${VERSION}.tar.gz"; \ | ||
wget -q https://github.com/postfixadmin/postfixadmin/archive/${PFA_TARBALL}; \ | ||
echo "${SHA256_HASH} *${PFA_TARBALL}" | sha256sum -c; \ | ||
\ | ||
mkdir /postfixadmin; \ | ||
tar -xzf ${PFA_TARBALL} --strip-components=1 -C /postfixadmin; \ | ||
rm -f ${PFA_TARBALL} | ||
|
||
COPY bin /usr/local/bin | ||
RUN chmod +x /usr/local/bin/* | ||
|