Created
September 1, 2013 16:38
-
-
Save cdekok/6405590 to your computer and use it in GitHub Desktop.
PHP 5.5 / Apache 2.4 Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build file for lamp server | |
# To build: | |
# 1) Install docker (http://docker.io) | |
# 2) Build: sudo docker build -t chris/php-5.5 . | |
# 3) Run: sudo docker run -i -t -v /var/www:/var/www chris/php-5.5 /bin/bash | |
# with the -v you can add a mount in 0.7 you should be able to use -h to provide a static ip | |
FROM base:ubuntu-12.10 | |
MAINTAINER Chris de Kok <[email protected]> | |
# Install PHP and Apache | |
RUN sudo apt-get install software-properties-common -y | |
RUN sudo apt-add-repository ppa:ondrej/php5 -y | |
RUN sudo apt-get update | |
RUN sudo apt-get install php5 -y --force-yes | |
RUN sudo apt-get install apache2 -y | |
RUN sudo apt-get install libapache2-mod-php5 -y | |
RUN sudo service apache2 restart | |
# Expose apache port, make sure nothing uses port 80 | |
EXPOSE :80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment