Created
January 21, 2015 10:54
-
-
Save yankcrime/1ef93725df63e9f3cda5 to your computer and use it in GitHub Desktop.
ownCloud Dockerfile
This file contains hidden or 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 ubuntu:12.04 | |
MAINTAINER Nick Jones "[email protected]" | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" >> /etc/apt/sources.list | |
RUN apt-get -y update | |
RUN dpkg-divert --local --rename --add /sbin/initctl | |
RUN ln -s /bin/true /sbin/initctl | |
RUN locale-gen en_US en_US.UTF-8 | |
RUN dpkg-reconfigure locales | |
RUN echo "mysql-server-5.5 mysql-server/root_password password root123" | debconf-set-selections | |
RUN echo "mysql-server-5.5 mysql-server/root_password_again password root123" | debconf-set-selections | |
RUN echo "mysql-server-5.5 mysql-server/root_password seen true" | debconf-set-selections | |
RUN echo "mysql-server-5.5 mysql-server/root_password_again seen true" | debconf-set-selections | |
RUN apt-get install -y apache2 php5 php5-gd php-xml-parser php5-intl php5-sqlite mysql-server-5.5 smbclient curl libcurl3 php5-mysql php5-curl bzip2 wget vim openssl ssl-cert | |
RUN wget -q -O - http://download.owncloud.org/community/owncloud-5.0.10.tar.bz2 | tar jx -C /var/www/ | |
RUN mkdir /etc/apache2/ssl | |
ADD resources/cfgmysql.sh /tmp/ | |
RUN chmod +x /tmp/cfgmysql.sh | |
RUN /tmp/cfgmysql.sh | |
RUN rm /tmp/cfgmysql.sh | |
ADD resources/001-owncloud.conf /etc/apache2/sites-available/ | |
ADD resources/start.sh /start.sh | |
RUN ln -s /etc/apache2/sites-available/001-owncloud.conf /etc/apache2/sites-enabled/ | |
RUN a2enmod rewrite ssl | |
EXPOSE :443 | |
RUN chown -R www-data:www-data /var/www/owncloud |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment