2020-12-28 22:49:56 +01:00
|
|
|
ARG INSTALL_CRON=0
|
|
|
|
ARG INSTALL_COMPOSER=0
|
2020-12-28 22:36:25 +01:00
|
|
|
ARG PHP_VERSION
|
|
|
|
ARG GLOBAL_VERSION
|
|
|
|
FROM thecodingmachine/php:8.0-v4-slim-apache
|
|
|
|
|
|
|
|
# |--------------------------------------------------------------------------
|
|
|
|
# | Main PHP extensions
|
|
|
|
# |--------------------------------------------------------------------------
|
|
|
|
# |
|
|
|
|
# | Installs the main PHP extensions
|
|
|
|
# |
|
|
|
|
|
|
|
|
USER root
|
|
|
|
RUN cd /usr/local/lib/thecodingmachine-php/extensions/current/ && ./install_all.sh && ./disable_all.sh
|
|
|
|
USER docker
|
|
|
|
|
|
|
|
# |--------------------------------------------------------------------------
|
|
|
|
# | Default PHP extensions to be enabled (in addition to the one declared in Slim build)
|
|
|
|
# |--------------------------------------------------------------------------
|
2020-12-28 22:41:58 +01:00
|
|
|
ENV PHP_EXTENSION_APCU=0 \
|
2020-12-28 22:36:25 +01:00
|
|
|
PHP_EXTENSION_MYSQLI=1 \
|
2020-12-28 22:41:58 +01:00
|
|
|
PHP_EXTENSION_PDO_MYSQL=0 \
|
|
|
|
PHP_EXTENSION_IGBINARY=0 \
|
|
|
|
PHP_EXTENSION_REDIS=0 \
|
2020-12-28 22:57:14 +01:00
|
|
|
PHP_EXTENSION_SOAP=0 \
|
|
|
|
APP_ENV=prod
|
2020-12-28 22:36:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
# |--------------------------------------------------------------------------
|
|
|
|
# | Add php files of website
|
|
|
|
# |--------------------------------------------------------------------------
|
2020-12-28 22:41:58 +01:00
|
|
|
COPY ./public /var/www/html
|