Skip to content

Instantly share code, notes, and snippets.

@NightWhistler
Created January 12, 2019 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NightWhistler/cfb59a4f6e8bb0ab5e856e645efa8ce2 to your computer and use it in GitHub Desktop.
Save NightWhistler/cfb59a4f6e8bb0ab5e856e645efa8ce2 to your computer and use it in GitHub Desktop.
FROM debian:8
MAINTAINER Alex Kuiper <alex@nightwhistler.net>
RUN echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community:/8.0/Debian_8.0/ /' > /etc/apt/sources.list.d/isv:ownCloud:community:8.0.list
RUN apt-get update
RUN apt-get install -y apt-utils
## Install base packages
RUN apt-get -yq install \
apache2 \
php5 \
libapache2-mod-php5 \
curl \
ca-certificates \
php5-curl \
php5-json \
php5-odbc \
php5-sqlite \
php5-mysql \
php5-mcrypt
RUN /usr/sbin/php5enmod mcrypt && a2enmod rewrite && mkdir /bootstrap
RUN DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes install owncloud
ADD owncloud.conf /etc/apache2/sites-available/owncloud.conf
ADD start.sh /bootstrap/start.sh
RUN a2ensite owncloud
RUN chmod 755 /bootstrap/start.sh && chown -R www-data:www-data /var/www/html
RUN chown www-data:www-data /var/www/owncloud/config -R
EXPOSE 80
ENTRYPOINT ["/bootstrap/start.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment