forked from hardware/postfixadmin
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (48 loc) · 1.36 KB
/
Dockerfile
File metadata and controls
52 lines (48 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM alpine:3.23
LABEL description="PostfixAdmin is a web based interface used to manage mailboxes"
ARG VERSION=4.0.1
ARG SHA256_HASH="b0cf3a6e28d46581f25fd3db0547b45179dac39a9027c719da8d34319045fa8f"
RUN set -eux; \
apk update && apk upgrade; \
apk add --no-cache \
bash \
su-exec \
dovecot \
tini \
\
php \
php-curl \
php-dom \
php-fpm \
php-iconv \
php-imap \
php-intl \
php-mbstring \
php-mysqli \
php-pdo \
php-pdo_mysql \
php-pdo_pgsql \
php-pgsql \
php-phar \
php-session \
php-simplexml \
php-sqlite3 \
php-tokenizer \
php-xml \
php-xmlwriter \
; \
\
PFA_TARBALL="v${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}; \
/bin/bash /postfixadmin/install.sh; \
ver="$(dovecot --version | awk '{print $1}')"; \
printf "dovecot_config_version = %s\ndovecot_storage_version = %s\n" "$ver" "$ver" > /etc/dovecot/dovecot.conf
COPY bin /usr/local/bin
RUN chmod +x /usr/local/bin/*
EXPOSE 8888
CMD ["tini", "--", "run.sh"]