Skip to content

Commit

Permalink
Bump up php version to 7.4
Browse files Browse the repository at this point in the history
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
  • Loading branch information
nfebe committed Jan 23, 2022
1 parent 682a890 commit 181b25e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
1 change: 1 addition & 0 deletions phplist-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ services:
- dbhost
- mailhog
image: phplist/phplist:${PHPLIST_VERSION:-latest}
build: ./phplist
volumes:
- ${CODE_PATH}:/var/www/phpList3
- images:/var/www/phpList3/public_html/images
Expand Down
21 changes: 13 additions & 8 deletions phplist/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@

FROM debian:buster-slim

LABEL maintainer="michiel@phplist.com"
LABEL maintainer="Michiel Dethmers <michiel@phplist.com>"

RUN apt-get update && apt-get upgrade -y

RUN apt-get install -y apt-utils \
vim apache2 net-tools php-mysql \
libapache2-mod-php php-curl php-gd \
git cron php-imap php-xml php-zip php-mbstring

RUN apt -y install lsb-release apt-transport-https ca-certificates
RUN apt-get install -y apt-utils vim apache2 net-tools git cron wget
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
RUN echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list
RUN apt update

RUN apt-get install -y php7.4 php7.4 php7.4-fpm \
php7.4-common php7.4-mysql php7.4-zip php7.4-gd \
php7.4-mbstring php7.4-curl php7.4-sqlite3 php7.4-json \
php7.4-bcmath php7.4-xml php7.4-intl php7.4-imap php-common \
libapache2-mod-php

RUN rm -f /etc/apache2/sites-enabled/000-default.conf && \
cd /var/www/ && find . -type d -name .git -print0 | xargs -0 rm -rf && \
find . -type d -print0 | xargs -0 chmod 755 && \
Expand All @@ -30,7 +36,6 @@ RUN echo VERSION=${VERSION}
RUN rm -rf /var/www/phpList3 && mkdir /var/www/phpList3
RUN rm -rf /etc/phpList3 && mkdir /etc/phpList3

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

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

0 comments on commit 181b25e

Please sign in to comment.