Created
March 5, 2014 01:20
-
-
Save teepark/9359357 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
FROM debian:wheezy | |
RUN apt-get update && apt-get -y upgrade | |
RUN apt-get install -y apache2 libapache2-mod-php5 php5-mysql php5-gd php5-curl | |
RUN /usr/sbin/a2enmod rewrite | |
ENV APACHE_RUN_USER www-data | |
ENV APACHE_RUN_GROUP www-data | |
ENV APACHE_LOG_DIR /var/log/apache2 | |
ADD webroot /var/www | |
RUN rm /var/www/index.html | |
RUN chown -R www-data:www-data /var/www | |
ADD start /start | |
EXPOSE 80 | |
CMD ["/bin/sh", "/start"] |
This file contains hidden or 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
exec /usr/sbin/apache2 -D FOREGROUND |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment