1
1
2
2
FROM debian:buster-slim
3
3
4
- LABEL maintainer=
"[email protected] "
4
+ LABEL maintainer=
"Michiel Dethmers < [email protected] >"
5
5
6
6
RUN 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
+
13
19
RUN rm -f /etc/apache2/sites-enabled/000-default.conf && \
14
20
cd /var/www/ && find . -type d -name .git -print0 | xargs -0 rm -rf && \
15
21
find . -type d -print0 | xargs -0 chmod 755 && \
@@ -30,7 +36,6 @@ RUN echo VERSION=${VERSION}
30
36
RUN rm -rf /var/www/phpList3 && mkdir /var/www/phpList3
31
37
RUN rm -rf /etc/phpList3 && mkdir /etc/phpList3
32
38
33
- COPY phplist-${VERSION}/ /var/www/phpList3
34
39
COPY docker-phplist-config-live.php /var/www/phpList3/config.php
35
40
36
41
RUN mkdir -p /var/www/phpList3/public_html/images && \
0 commit comments