Skip to content

Commit e2edfa2

Browse files
committed
PFA 3.2.4
1 parent 86d0f81 commit e2edfa2

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
FROM eu.gcr.io/long-grin-186810/rs-php:7.4.4-apache-2.4.38.0
22
LABEL maintainer="Ralph Schuster <github@ralph-schuster.eu>"
33

4-
# PFA has a bug in 3.2 release (see below)
5-
RUN apt-get update && apt-get update && apt-get install -y --no-install-recommends \
6-
patch \
7-
&& rm -rf /var/lib/apt/lists/*
4+
#RUN apt-get update && apt-get update && apt-get install -y --no-install-recommends \
5+
# patch \
6+
# && rm -rf /var/lib/apt/lists/*
87

98
#ADD etc/php/ /usr/local/etc/php/conf.d/
109
#ADD etc/conf/ /etc/apache2/conf-enabled/
1110
#ADD etc/mods/ /etc/apache2/mods-enabled/
1211
#ADD etc/sites/ /etc/apache2/sites-enabled/
1312
RUN chown -R www-data:www-data /var/www/html
1413

15-
RUN cd /var/www/html \
16-
&& curl -o postfixadmin.tar.gz https://netcologne.dl.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-3.2/postfixadmin-3.2.tar.gz \
17-
&& tar --strip-components=1 -xzvf postfixadmin.tar.gz \
14+
ENV PFA_VERSION="3.2.4"
15+
ENV PFA_URL="https://github.com/postfixadmin/postfixadmin/archive/postfixadmin-${PFA_VERSION}.tar.gz"
16+
RUN set -xe \
17+
&& cd /var/www/html \
18+
&& curl -o postfixadmin.tar.gz -L "$PFA_URL" \
19+
&& tar --strip-components=1 -xvf postfixadmin.tar.gz \
1820
&& rm postfixadmin.tar.gz \
1921
&& mkdir templates_c \
2022
&& chown -R www-data:www-data .
2123

2224
ADD src/ /var/www/html/
2325

24-
# Fix the crucial bug
25-
RUN patch /var/www/html/model/MailboxHandler.php < /var/www/html/MailboxHandler.patch

0 commit comments

Comments
 (0)