Standalone Owncloud with sqlite. Ready to be used.
1.0K
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
MAINTAINER [email protected]
# 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 https://download.owncloud.org/community/owncloud-8.0.2.tar.bz2 /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:
# https://github.com/owncloud/core/issues/14963#issuecomment-82442947
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"]
docker build --rm -t cael/owncloud .
docker run --restart="always" -d -p 8081:80 cael/owncloud
Content type
Image
Digest
sha256:1e10c6a48…
Size
200.5 MB
Last updated
almost 11 years ago
docker pull cael/owncloud