Install default PHP packages

These are the default php packages on Bionic, so we can drop the
7.3 suffix from the installed package names.

We also reduce the work apt has to do by merging the apt install
lines together into one.
Chris Halls 2020-01-09 17:57:06 +01:00
parent 7766403b82
commit 048e8ba141
1 changed files with 4 additions and 7 deletions

View File

@ -21,13 +21,10 @@ RUN apt-get install -y apache2 apache2-doc apache2-utils && \
a2dissite 000-default
# PHP 7.2 and install MySQL PDO extension
RUN apt-get install -y libapache2-mod-php7.2 php7.2 php7.2-cli php7.2-dev \
php7.2-json php7.2-mysql php7.2-opcache php7.2-readline php7.2-redis \
php7.2-xml && \
apt-get install -y php-pear pkg-config libbson-1.0 libmongoc-1.0-0 \
php7.2-xml php7.2-dev php7.2-gd && \
apt-get install -y php7.2-mysql && \
apt-get install -y php7.2-mbstring
RUN apt-get install -y libapache2-mod-php php php-dev php-json \
php-mysql php-redis php-xml php-mbstring \
php-gd php-pear php-opcache \
pkg-config libbson-1.0 libmongoc-1.0-0
# Fix php.ini with recommended settings
RUN sed -i \