Skip to content

Instantly share code, notes, and snippets.

@settermjd settermjd/Dockerfile
Last active Jan 10, 2019

Embed
What would you like to do?
Custom owncloud-ubuntu Dockerfile
FROM owncloud/ubuntu:18.04
VOLUME ["/mnt/data"]
EXPOSE 80
EXPOSE 443
ENTRYPOINT ["/usr/local/bin/entrypoint"]
CMD ["/usr/local/bin/owncloud"]
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install --no-install-recommends --assume-yes --quiet \
ca-certificates curl git apache2 libapache2-mod-php7.2 \
libxml2-utils git-core unzip make nodejs yarn wget fontconfig libaio1 \
php-pear php7.2 php7.2-dev php7.2-xml php7.2-mbstring \
php7.2-curl php7.2-gd php7.2-zip php7.2-intl php7.2-sqlite3 \
php7.2-mysql php7.2-pgsql php7.2-soap php7.2-phpdbg php-redis \
php-imagick php-smbclient php-apcu php7.2-ldap && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /etc/apache2/sites-available/default-ssl.conf && \
a2enmod rewrite headers env dir mime ssl expires unique_id && \
mkdir -p /var/www/owncloud /mnt/data/files /mnt/data/config /mnt/data/certs /mnt/data/sessions && \
chown -R www-data:www-data /var/www/owncloud /mnt/data && \
chsh -s /bin/bash www-data
# Install the Redis extension
RUN pecl install -o -f redis \
&& rm -rf /tmp/pear
COPY rootfs /
WORKDIR /var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.