piotrpolak/pepiscms

View on GitHub
build/docker/web/Dockerfile

Summary

Maintainability
Test Coverage
FROM php:7.4.23-apache

ADD install.sh /install.sh

RUN apt-get update && apt-get install -yq git zip unzip libpng-dev libzip-dev && \
    a2enmod rewrite && \
    docker-php-ext-install mysqli && \
    docker-php-ext-install gd && \
    docker-php-ext-install zip && \
    echo "date.timezone = Europe/Warsaw" > /usr/local/etc/php/php.ini && \
    rm -rf /var/lib/apt/lists/* && \
    php -r "copy('https://getcomposer.org/installer', '/tmp/composer-setup.php');" && \
    php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer && \
    rm -rf /tmp/composer-setup.php && \
    rm -rf /var/www/html