Skip to content

Commit

Permalink
Adding Dockerfile
Browse files Browse the repository at this point in the history
For quick demos for people in the Docker crowd..
  • Loading branch information
jrgp committed Jan 19, 2016
1 parent 29498b0 commit 7a5f2bb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM ubuntu:14.04

RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y dist-upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install apache2 libapache2-mod-php5 curl

RUN rm /var/www/html/index.html

ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_PID_FILE /var/run/apache2/apache2.pid

CMD ["/usr/sbin/apache2", "-D", "FOREGROUND"]

ADD . /var/www/html/

EXPOSE 80

0 comments on commit 7a5f2bb

Please sign in to comment.