Skip to content

Commit 181b25e

Browse files
committed
Bump up php version to 7.4
Signed-off-by: fenn-cs <[email protected]>
1 parent 682a890 commit 181b25e

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

phplist-dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ services:
3434
- dbhost
3535
- mailhog
3636
image: phplist/phplist:${PHPLIST_VERSION:-latest}
37+
build: ./phplist
3738
volumes:
3839
- ${CODE_PATH}:/var/www/phpList3
3940
- images:/var/www/phpList3/public_html/images

phplist/Dockerfile

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11

22
FROM debian:buster-slim
33

4-
LABEL maintainer="[email protected]"
4+
LABEL maintainer="Michiel Dethmers <[email protected]>"
55

66
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+
1319
RUN 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}
3036
RUN rm -rf /var/www/phpList3 && mkdir /var/www/phpList3
3137
RUN rm -rf /etc/phpList3 && mkdir /etc/phpList3
3238

33-
COPY phplist-${VERSION}/ /var/www/phpList3
3439
COPY docker-phplist-config-live.php /var/www/phpList3/config.php
3540

3641
RUN mkdir -p /var/www/phpList3/public_html/images && \

0 commit comments

Comments
 (0)