first commit

This commit is contained in:
jtscott
2016-11-16 19:10:22 -07:00
commit 465783a090
3 changed files with 74 additions and 0 deletions

33
Dockerfile Normal file
View File

@@ -0,0 +1,33 @@
FROM library/debian:stable
MAINTAINER Jared Scott <jtscott@gmail.com>
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
RUN apt-get update && apt-get install -y \
curl \
unzip \
apache2 \
php5 \
php5-mysql \
php5-curl \
php5-gd \
php-fdomdocument \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN /usr/sbin/a2dismod 'mpm_*' \
&& /usr/sbin/a2enmod mpm_prefork \
&& /usr/sbin/a2enmod ssl \
&& /usr/sbin/a2enmod rewrite \
&& /usr/sbin/a2ensite default-ssl \
&& chown -R www-data:www-data /var/www/html
COPY download-pancake.sh /opt/
RUN chmod 755 /opt/download-pancake.sh
EXPOSE 80
EXPOSE 443
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]