Skip to content
Snippets Groups Projects
Dockerfile.dev 561 B
Newer Older
  • Learn to ignore specific revisions
  • François Agneray's avatar
    François Agneray committed
    FROM php:8.0.3-apache
    
    # Install modules
    RUN apt-get update \ 
        && apt-get install -y zlib1g zlib1g-dev libpq-dev libpq5 libzip-dev zip unzip jq \
        && docker-php-ext-install pgsql pdo_pgsql zip bcmath
        
    # Install pecl modules
    RUN pecl install xdebug && rm -rf /tmp/pear
    RUN printf "\n" | pecl install apcu
    
    RUN touch /var/log/xdebug_remote.log && chown www-data:www-data /var/log/xdebug_remote.log
    
    # Install mod_rewrite
    RUN a2enmod rewrite
    
    
    François Agneray's avatar
    François Agneray committed
    COPY ./vhost.conf /etc/apache2/sites-available/000-default.conf
    
    WORKDIR /project
    
    
    François Agneray's avatar
    François Agneray committed
    CMD ["apache2-foreground"]