FROM php:7.3.6
MAINTAINER <NAME> <<EMAIL>>

# Update OS
RUN apt-get update && apt-get install -y zip unzip libfreetype6-dev libjpeg62-turbo-dev libzip-dev

# Install PHP-GD extension (required by phpoffice/phpspreadsheet)
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
RUN docker-php-ext-install -j$(nproc) gd

# Install Docker PHP extensions
RUN docker-php-ext-install pcntl pdo pdo_mysql zip

# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer