Sign inSign up

wenkhairu/php54-apache

By wenkhairu

•Updated about 7 years ago

php 5.4.4 and apache on debian based

Image
0

195

wenkhairu/php54-apache repository overview

This image is not to be used on a production server! I use it for local development on old projects (hence the PHP version).

See Dockerfile for more info, it should be pretty self-explanatory.

⁠Dockerfile

FROM php:5.4-apache
RUN apt-get update && apt-get install -y \
        libbz2-dev \
        libfreetype6-dev \
        libjpeg62-turbo-dev \
        libmcrypt-dev \
        libpng12-dev \
        libxml2-dev \
    && docker-php-ext-install iconv mbstring mcrypt soap sockets zip \
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install gd \
    && docker-php-ext-configure mysql --with-mysql=mysqlnd \
    && docker-php-ext-install mysql \
    && docker-php-ext-install pdo pdo_mysql

COPY php.ini /usr/local/etc/php/

RUN a2enmod rewrite

VOLUME /var/www/html/

ONBUILD COPY src/ /var/www/html/
ONBUILD RUN chown -R www-data:www-data /var/www/html

EXPOSE 80
ENV VIRTUAL_HOST site.local
ENV UPSTREAM_NAME web-site
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

Tag summary

Content type

Image

Digest

Size

190.9 MB

Last updated

about 7 years ago

docker pull wenkhairu/php54-apache