Public Repository

Last pushed: 2 years ago
Short Description
Standalone Owncloud with sqlite. Ready to be used.
Full Description

Owncloud with sqlite. Standalone and ready to be used. Not the ideal setup for large instalations but for a few people good enough.

I recommend reverse proxying the 8081 port to a SSL enabled proxy like nginx or haproxy.


# Default stuffs
FROM centos

# Install apache, php, sqlite and php stuff for owncloud
RUN yum install -y httpd php sqlite php-dom php-mbstring php-gd php-pdo tar bzip2

# Download Owncloud 8.0.2 and extract it to /var/www/html
ADD /var/www/
RUN tar xj -f /var/www/owncloud-8.0.2.tar.bz2 -C /var/www/html/ --strip=1

# Set default_charset to UTF-8 in /etc/php.ini
RUN sed -i 's/.*;default_charset = "UTF-8".*/default_charset = "UTF-8"/' /etc/php.ini

# Fix the module installation issue
# Fix documented here:
RUN sed -i '/curl_setopt($curl, CURLOPT_REDIR_PROTOCOLS,  CURLPROTO_HTTP | CURLPROTO_HTTPS)\;/a \\t \t \tcurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);' /var/www/html/lib/private/httphelper.php

# Set owner of /var/www/html to apache
RUN chown -R apache:apache /var/www/html/

# Run apache in foreground
CMD ["apachectl", "-D", "FOREGROUND"]

Build command:

docker build --rm -t cael/owncloud .

Run command:

docker run --restart="always" -d -p 8081:80 cael/owncloud
Docker Pull Command