Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • test-docker-isolation-mode
  • custom-llvm-docker-image
  • thesis/tdk-evaluator-static-analysis
4 results

Dockerfile

Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Dockerfile 956 B
FROM php:7.4-apache

# Update package repository
RUN apt-get update -y
# Intall tools
RUN apt-get install -y git zip p7zip-full
# Install libraries
RUN apt-get install -y \
    # intl
    libicu-dev \
    # gd
    libjpeg-dev \
    libpng-dev \
    zlib1g-dev \
    libxpm-dev \
    libwebp-dev \
    libfreetype6-dev \
    # bz2
    libbz2-dev \
    # zip
    libzip-dev \
    # pspell_* functions
    libaspell-dev
# Install PHP extensions
RUN docker-php-ext-install \
    pdo_mysql \
    intl \
    gd \
    zip \
    bz2 \
    opcache \
    exif
# Install & enable Xdebug for code coverage reports, install & enable native rar support in PHP
RUN pecl install xdebug-2.9.8 rar
RUN docker-php-ext-enable xdebug rar
# Enable URL rewrite
RUN a2enmod rewrite && service apache2 restart
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN composer --version

WORKDIR /var/www/html/