Skip to content

Commit c5df13a

Browse files
committed
Updated to PHP 8 and MySQL 8
1 parent 347446b commit c5df13a

2 files changed

Lines changed: 6 additions & 29 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM mysql:5.7
1+
FROM mysql:8.0

dockerized-dev-env/bin/phpwebserver/Dockerfile

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.1.20-apache
1+
FROM php:8.0.6-apache
22

33
RUN apt-get -y update --fix-missing
44
RUN apt-get upgrade -y
@@ -7,40 +7,17 @@ RUN apt-get upgrade -y
77
RUN apt-get -y install apt-utils nano wget dialog
88

99
# Install important libraries
10-
RUN apt-get -y install --fix-missing apt-utils build-essential git curl libcurl3 libcurl3-dev zip
10+
RUN apt-get -y install --fix-missing apt-utils build-essential git curl libcurl4 libcurl4-openssl-dev libonig-dev libsqlite3-dev zip libbz2-dev
1111

1212
# Composer
1313
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
1414

1515
# Install xdebug
16-
RUN pecl install xdebug-2.5.0
16+
RUN pecl install xdebug-3.0.4
1717
RUN docker-php-ext-enable xdebug
1818

19-
# Other PHP7 Extensions
20-
21-
RUN apt-get -y install libmcrypt-dev
22-
RUN docker-php-ext-install mcrypt
23-
24-
RUN apt-get -y install libsqlite3-dev libsqlite3-0 mysql-client
25-
RUN docker-php-ext-install pdo_mysql
26-
RUN docker-php-ext-install pdo_sqlite
27-
RUN docker-php-ext-install mysqli
28-
29-
RUN docker-php-ext-install curl
30-
RUN docker-php-ext-install tokenizer
31-
RUN docker-php-ext-install json
32-
33-
RUN apt-get -y install zlib1g-dev
34-
RUN docker-php-ext-install zip
35-
36-
RUN apt-get -y install libicu-dev
37-
RUN docker-php-ext-install -j$(nproc) intl
38-
39-
RUN docker-php-ext-install mbstring
40-
41-
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev
42-
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
43-
RUN docker-php-ext-install -j$(nproc) gd
19+
# Install rest of PHP extensions
20+
RUN docker-php-ext-install bz2 curl fileinfo gettext mbstring exif mysqli pdo_mysql pdo_sqlite
4421

4522
# Enable ssl/https
4623
RUN ln -s /etc/apache2/mods-available/ssl.load /etc/apache2/mods-enabled/ssl.load

0 commit comments

Comments
 (0)