diff --git a/Dockerfile b/Dockerfile index d38c5a2..2ae0d5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,6 +63,11 @@ RUN bash -c 'apt install -y php${PHPVERSION}-imagick imagemagick ffmpeg libreoff #Installing Optional cli enhancement PHP Modules #RUN bash -c 'apt install -y php${PHPVERSION}-pcntl --no-install-recommends' +#Download and extract Nextcloud.... +RUN wget https://download.nextcloud.com/server/releases/latest.tar.bz2 \ + && tar -xvf latest.tar.bz2 \ + && rm -v latest.tar.bz2 + # Delete default stuff #nginx diff --git a/buildfiles/auto_config.sh b/buildfiles/auto_config.sh index 8a1adb2..65d1b40 100644 --- a/buildfiles/auto_config.sh +++ b/buildfiles/auto_config.sh @@ -8,6 +8,9 @@ ln -sv /etc/nginx/sites-available/nextcloud_nginx.conf /etc/nginx/sites-enabled/ cp -rv default_configs/etc/php /etc/ touch init/init +#Copy nextcloud to web root +cp -rv nextcloud/ /var/www/html + #Create log dirs mkdir -pv /root/logs/nginx mkdir -pv /root/logs/php-fpm diff --git a/docker-compose.yml b/docker-compose.yml index 58ceb5c..bc11446 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,8 +6,9 @@ services: image: git.shihaam.me/dockerfiles/nextcloud volumes: - ./configs/init:/root/init - - ./logs:/root/logs - ./configs/etc/nginx:/etc/nginx - ./configs/etc/php:/etc/php + - ./nextcloud:/var/www/html + - ./logs:/root/logs ports: - 8000:80