11
22FROM debian:buster-slim
33
4- LABEL maintainer=
"[email protected] " 4+ LABEL maintainer=
"Michiel Dethmers < [email protected] >" 55
66RUN apt-get update && apt-get upgrade -y
7-
8- RUN apt-get install -y apt-utils \
9- vim apache2 net-tools php-mysql \
10- libapache2-mod-php php-curl php-gd \
11- git cron php-imap php-xml php-zip php-mbstring
12-
7+ RUN apt -y install lsb-release apt-transport-https ca-certificates
8+ RUN apt-get install -y apt-utils vim apache2 net-tools git cron wget
9+ RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
10+ RUN echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list
11+ RUN apt update
12+
13+ RUN apt-get install -y php7.4 php7.4 php7.4-fpm \
14+ php7.4-common php7.4-mysql php7.4-zip php7.4-gd \
15+ php7.4-mbstring php7.4-curl php7.4-sqlite3 php7.4-json \
16+ php7.4-bcmath php7.4-xml php7.4-intl php7.4-imap php-common \
17+ libapache2-mod-php
18+
1319RUN rm -f /etc/apache2/sites-enabled/000-default.conf && \
1420 cd /var/www/ && find . -type d -name .git -print0 | xargs -0 rm -rf && \
1521 find . -type d -print0 | xargs -0 chmod 755 && \
@@ -30,7 +36,6 @@ RUN echo VERSION=${VERSION}
3036RUN rm -rf /var/www/phpList3 && mkdir /var/www/phpList3
3137RUN rm -rf /etc/phpList3 && mkdir /etc/phpList3
3238
33- COPY phplist-${VERSION}/ /var/www/phpList3
3439COPY docker-phplist-config-live.php /var/www/phpList3/config.php
3540
3641RUN mkdir -p /var/www/phpList3/public_html/images && \
0 commit comments