Skip to content

Instantly share code, notes, and snippets.

@teepark
Created March 5, 2014 01:20
Show Gist options
  • Save teepark/9359357 to your computer and use it in GitHub Desktop.
Save teepark/9359357 to your computer and use it in GitHub Desktop.
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"]
exec /usr/sbin/apache2 -D FOREGROUND
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment