From 0d6adb0edf046a7232869731702bc46637e92c31 Mon Sep 17 00:00:00 2001 From: Luca <61653175+iu2frl@users.noreply.github.com> Date: Tue, 4 Jul 2023 17:12:26 +0200 Subject: [PATCH] More concise Dockerfile --- docker/Dockerfile | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 87cb2975..80ebd6a3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -13,21 +13,10 @@ RUN docker-php-ext-install mysqli mbstring xml RUN rm -rf /var/www/html/docker/ COPY ./ /var/www/html/ WORKDIR /var/www/html -RUN cd /var/www/html && ls \ -&& chown -R root:root ./application/config/ \ -&& chown -R root:root ./application/logs/ \ -&& chown -R root:root ./assets/qslcard/ \ -&& chown -R root:root ./backup/ \ -&& chown -R root:root ./updates/ \ -&& chown -R root:root ./uploads/ \ -&& chown -R root:root ./images/eqsl_card_images/ \ -&& chown -R root:root ./assets/json/ \ -&& chmod -R g+rw ./application/config/ \ -&& chmod -R g+rw ./application/logs/ \ -&& chmod -R g+rw ./assets/qslcard/ \ -&& chmod -R g+rw ./backup/ \ -&& chmod -R g+rw ./updates/ \ -&& chmod -R g+rw ./uploads/ \ -&& chmod -R g+rw ./images/eqsl_card_images/ \ -&& chmod -R g+rw ./assets/json/ \ -&& chmod 777 /var/www/html/install +RUN cd /var/www/html \ +&& echo "Setting root as owner of the folder..." \ +&& chown -R root:root /var/www/html \ +&& echo "Setting permissions to the install folder" \ +&& chmod 777 /var/www/html/install \ +&& echo "Make sure everything is fine" \ +&& dir -ls