nginx, with php-fpm and phpredis extension, support for vhosts, based off of maxexcloo/nginx-php
447
FROM maxexcloo/nginx-php
MAINTAINER apotek
RUN apt-get update && apt-get install -y wget unzip php5-dev
WORKDIR /tmp
RUN wget https://github.com/phpredis/phpredis/archive/2.2.7.zip
RUN unzip 2.2.7.zip
WORKDIR phpredis-2.2.7
RUN phpize
RUN ./configure
RUN make && make install
RUN cp modules/redis.so /usr/lib/php5/20131106
RUN mkdir -p /etc/php5/mods-available
RUN echo "extension=redis.so" > /etc/php5/mods-available/redis.ini
WORKDIR /etc/php5/cli/conf.d
RUN ln -s ../../mods-available/redis.ini 20-redis.ini
WORKDIR /etc/php5/fpm/conf.d
RUN ln -s ../../mods-available/redis.ini 20-redis.ini
# nginx mods
# Remove default server and add in support for multiple virtual hosts.
# Allows new vhosts to be added as /data/config/nginx-*.vhost files
RUN rm /etc/nginx/host.d/default.conf
ADD vhosts.conf /etc/nginx/host.d/vhosts.conf
# End up somewhere ok.
WORKDIR /
Content type
Image
Digest
sha256:cb59e2ea8…
Size
175.7 MB
Last updated
over 9 years ago
docker pull apotek/nginx-php-phpredis