FROM php:5-apache

RUN docker-php-ext-install mysql opcache

RUN apt-get update && apt-get install -y locales tzdata
RUN echo "en_US.UTF-8" >> /etc/locale.gen \
    & locale-gen en_US.UTF-8
RUN echo "Europe/Kiev" > /etc/timezone \
    && dpkg-reconfigure -f noninteractive tzdata
RUN cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
RUN echo "ServerTokens Prod\n" > /etc/apache2/conf-available/security.conf \
    & echo "ServerSignature Off\n" >> /etc/apache2/conf-available/security.conf \
    & echo "TraceEnable Off\n" >> /etc/apache2/conf-available/security.conf 

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8
