Skip to content

Instantly share code, notes, and snippets.

@bigyan
Created December 31, 2015 10:13
Show Gist options
  • Save bigyan/1373367b6673637fa013 to your computer and use it in GitHub Desktop.
Save bigyan/1373367b6673637fa013 to your computer and use it in GitHub Desktop.
YIPL-SLW Sample Dockerfile
FROM ubuntu:14.04
MAINTAINER Bigyan
RUN apt-get update
RUN apt-get install apache2 -y
RUN apt-get install php5 libapache2-mod-php5 php5-mcrypt -y
RUN sed -i 's/DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm/DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm/g' /etc/apache2/mods-enabled/dir.conf
ADD index.php /var/www/html/index.php
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment