Last active
August 29, 2015 14:05
-
-
Save Cacodaimon/4c8ef1e4ca34bc439cc3 to your computer and use it in GitHub Desktop.
CacoCloud Dockerfile
This file contains 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
sudo docker build -t="caco-cloud" . | |
sudo docker run -p 6060:443 caco-cloud | |
sudo docker run -v /home/caco/tmp/:/var/www/caco-cloud/database -d -p 6060:443 caco-cloud |
This file contains 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 | |
MAINTAINER Guido Krömer | |
RUN apt-get update | |
RUN apt-get install -y apache2 sqlite3 php5 php5-imap php5-mcrypt php5-sqlite php5-curl wget | |
RUN mkdir /etc/apache2/ssl | |
RUN openssl req -new -x509 -days 365 -nodes -subj "/C=DE" -out /etc/apache2/ssl/caco-cloud.pem -keyout /etc/apache2/ssl/caco-cloud.key | |
RUN a2enmod ssl; a2enmod php5; a2enmod headers; a2enmod deflate; a2enmod rewrite | |
RUN echo "NameVirtualHost *:443" >> /etc/apache2/ports.conf | |
RUN cat /etc/apache2/ports.conf | |
ADD ./caco-cloud-apache-vhost.conf /etc/apache2/sites-available/caco-cloud | |
RUN a2ensite caco-cloud | |
RUN wget http://cacodaimon.github.io/CacoCloud/download/CacoCloud.tar.gz | |
RUN mkdir /var/www/caco-cloud | |
RUN tar xf /CacoCloud.tar.gz -C /var/www/caco-cloud | |
RUN rm /CacoCloud.tar.gz | |
RUN chown -R www-data:www-data /var/www/caco-cloud | |
ENV APACHE_RUN_USER www-data | |
ENV APACHE_RUN_GROUP www-data | |
ENV APACHE_LOG_DIR /var/log/apache2 | |
EXPOSE 443 | |
ENTRYPOINT ["/usr/sbin/apachectl"] | |
CMD ["-D", "FOREGROUND"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment