|
@@ -0,0 +1,40 @@
|
|
|
|
|
+ARG PHP_VERSION
|
|
|
|
|
+FROM apache2
|
|
|
|
|
+ARG PHP_VERSION
|
|
|
|
|
+RUN apt update
|
|
|
|
|
+RUN apt install -y libapache2-mod-php${PHP_VERSION}
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-apcu
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-cli
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-common
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-curl
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-bz2
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-gd
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-igbinary
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-imagick
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-imap
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-intl
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-mbstring
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-memcache
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-memcached
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-msgpack
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-mysql
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-opcache
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-pspell
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-readline
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-redis
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-soap
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-tidy
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-xml
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-xmlrpc
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-xsl
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-zip
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-bcmath
|
|
|
|
|
+RUN apt install -y php${PHP_VERSION}-sqlite3
|
|
|
|
|
+RUN apt install -y composer
|
|
|
|
|
+RUN echo "ServerName \"${PHP_VERSION}\"" >> /etc/apache2/apache2.conf
|
|
|
|
|
+RUN sed -i -e "s/upload_max_filesize = 2M/upload_max_filesize = 100M/g" /etc/php/${PHP_VERSION}/apache2/php.ini
|
|
|
|
|
+COPY run.sh /root
|
|
|
|
|
+RUN chmod a+x /root/run.sh
|
|
|
|
|
+CMD ['/bin/bash','/root/run.sh']
|
|
|
|
|
+
|