Skip to content

Commit

Permalink
Merge pull request #43 from bryanlatten/nginx-upgrade
Browse files Browse the repository at this point in the history
Dockerfile: added nginx PPA
  • Loading branch information
Bryan Latten committed Jul 16, 2015
2 parents 6b38e6d + a33aee9 commit dafd90e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ RUN add-apt-repository ppa:git-core/ppa -y && \
apt-get update -yq && \
apt-get install -yq git

# singularity_runner
# Install singularity_runner
RUN apt-get install build-essential ruby1.9.1-dev -y && \
gem install --no-rdoc --no-ri singularity_dsl --version 1.6.3


# Install latest nginx-stable
RUN add-apt-repository ppa:nginx/stable -y && \
apt-get update -yq && \
apt-get install -yq nginx=1.8.0-1+trusty1

# IMPORTANT: PPA has UTF-8 characters in it that will fail unless locale is generated
RUN locale-gen en_US.UTF-8 && export LANG=en_US.UTF-8 && add-apt-repository ppa:ondrej/php5-5.6 -y

Expand All @@ -44,7 +50,6 @@ RUN apt-get update && \
php5-mcrypt \
php5-json \
php5-xdebug \
nginx \
nano && \
php5dismod xdebug

Expand All @@ -56,6 +61,7 @@ RUN printf "\n" | pecl install apcu-4.0.7 && \
echo 'extension=apcu.so' > /etc/php5/mods-available/apcu.ini && \
php5enmod apcu


# Perform cleanup, ensure unnecessary packages are removed
RUN apt-get autoclean -y && \
apt-get autoremove -y && \
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ docker-php
Provides basic building blocks for PHP web applications

###Includes
---
---
- Nginx
- PHP-FPM (5.6)
- PHP/PHP-FPM (5.6)
- Extra PHP Modules:
- apcu
- curl
- gearman
- igbinary
- intl
- mcrypt
- memcache
- memcached (yes, both...)
Expand All @@ -22,3 +23,6 @@ Provides basic building blocks for PHP web applications
###Expectations
---
Applications that leverage `bryanlatten/docker-php` in their Dockerfile are expected have a root directory in their source code named `public` -- this will be automatically assigned as the webroot for the web server.

Development libraries are made available (php5-dev) for downstream app to use to add dependencies, such as PECL modules. Please run /clean.sh at the end of a child build to ensure these packages are removed before production.

3 changes: 1 addition & 2 deletions container/root/clean.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/bin/bash

# Perform cleanup, ensure unnecessary packages are removed
apt-get remove -yq \
apt-get remove --purge -yq \
wget \
git \
php5-dev \
gcc && \
apt-get autoclean -y && \
Expand Down

0 comments on commit dafd90e

Please sign in to comment.