File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM eu.gcr.io/long-grin-186810/rs-php:7.4.4-apache-2.4.38.0
22LABEL 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/
1312RUN 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
2224ADD src/ /var/www/html/
2325
24- # Fix the crucial bug
25- RUN patch /var/www/html/model/MailboxHandler.php < /var/www/html/MailboxHandler.patch
You can’t perform that action at this time.
0 commit comments