diff --git a/dockerfile b/dockerfile index 42a94bf..60a2673 100644 --- a/dockerfile +++ b/dockerfile @@ -26,9 +26,9 @@ RUN sed -i "s/{{DOMAIN}}/${DOMAIN}/g" /etc/apache2/sites-available/${DOMAIN}.con a2ensite ${DOMAIN}.conf && \ a2enmod rewrite -# Cloner Hubzilla dans /var/www/html -RUN rm -rf /var/www/html && \ - git clone https://framagit.org/hubzilla/core.git /var/www/html && \ +# Installer Hubzilla +RUN git clone https://framagit.org/hubzilla/core.git /tmp/hubzilla && \ + mv /tmp/hubzilla /var/www/html && \ cd /var/www/html && \ util/add_addon_repo https://framagit.org/hubzilla/addons.git official && \ mkdir -p store/[data]/smarty3 && \ @@ -56,8 +56,7 @@ RUN echo "upload_max_filesize = 20M" >> /etc/php/8.2/apache2/php.ini && \ COPY src/.htconfig.php /tmp/.htconfig.php RUN LOCATION_HASH=$(cat /dev/urandom | tr -dc 'a-f0-9' | fold -w 64 | head -n 1) && \ sed "s/{{DOMAIN}}/${DOMAIN}/g; s/{{LOCATION_HASH}}/${LOCATION_HASH}/g; s/{{ADMIN_EMAIL}}/${ADMIN_EMAIL}/g" /tmp/.htconfig.php > /var/www/html/.htconfig.php && \ - chown www-data:www-data /var/www/html/.htconfig.php && \ - rm /tmp/.htconfig.php + chown www-data:www-data /var/www/html/.htconfig.php # Cron RUN echo "*/15 * * * * cd /var/www/html; /usr/bin/php Zotlabs/Daemon/Master.php Cron" | crontab -u www-data -