Skip to content
Snippets Groups Projects
Dockerfile 1.12 KiB
Newer Older
  • Learn to ignore specific revisions
  • ARG INSTALL_CRON=1
    ARG INSTALL_COMPOSER=1
    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)
    # |--------------------------------------------------------------------------
    ENV PHP_EXTENSION_APCU=1 \
        PHP_EXTENSION_MYSQLI=1 \
        PHP_EXTENSION_PDO_MYSQL=1 \
        PHP_EXTENSION_IGBINARY=1 \
        PHP_EXTENSION_REDIS=1 \
        PHP_EXTENSION_SOAP=1
    
    
    # |--------------------------------------------------------------------------
    # | Add php files of website
    # |--------------------------------------------------------------------------
    COPY ./public /var/www/html
    #RUN rm /var/www/html/internal/config.php