Public Repository

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

FROM ubuntu:14.04

intializing

RUN \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C ; \
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys E5267A6C; \
echo 'deb http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu trusty main' > /etc/apt/sources.list.d/ondrej-php5-5.6-trusty.list ; \
apt-get update

installing nginx

RUN \
apt-get install -y nginx ; \
rm -rf /var/lib/apt/lists/* ; \
chown -R www-data:www-data /var/lib/nginx

tweak nginx config

RUN \
sed -i -e"s/worker_processes 1/worker_processes 5/" /etc/nginx/nginx.conf ; \
sed -i -e"s/keepalive_timeout\s*65/keepalive_timeout 2/" /etc/nginx/nginx.conf ; \
sed -i -e"s/keepalive_timeout 2/keepalive_timeout 2;\n\tclient_max_body_size 100m/" /etc/nginx/nginx.conf ; \
echo "daemon off;" >> /etc/nginx/nginx.conf

instaling php

RUN \
apt-get update ; \
apt-get -y install php5-fpm php5-mysql php-apc php5-imagick php5-imap php5-mcrypt php5-curl php5-cli php5-gd php5-pgsql php5-sqlite php5-common php-pear curl php5-json php5-redis ; \
apt-get clean && rm -rf /var/lib/apt/lists/ /tmp/ /var/tmp/*

Define mountable directories.

VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"]

Define working directory.

WORKDIR /var/www

Expose ports.

EXPOSE 80
EXPOSE 443
EXPOSE 9000

Docker Pull Command
Owner
odielleon

Comments (0)