More concise Dockerfile

This commit is contained in:
Luca 2023-07-04 17:12:26 +02:00 committed by GitHub
parent 76dea7bd82
commit 0d6adb0edf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,21 +13,10 @@ RUN docker-php-ext-install mysqli mbstring xml
RUN rm -rf /var/www/html/docker/ RUN rm -rf /var/www/html/docker/
COPY ./ /var/www/html/ COPY ./ /var/www/html/
WORKDIR /var/www/html WORKDIR /var/www/html
RUN cd /var/www/html && ls \ RUN cd /var/www/html \
&& chown -R root:root ./application/config/ \ && echo "Setting root as owner of the folder..." \
&& chown -R root:root ./application/logs/ \ && chown -R root:root /var/www/html \
&& chown -R root:root ./assets/qslcard/ \ && echo "Setting permissions to the install folder" \
&& chown -R root:root ./backup/ \ && chmod 777 /var/www/html/install \
&& chown -R root:root ./updates/ \ && echo "Make sure everything is fine" \
&& chown -R root:root ./uploads/ \ && dir -ls
&& 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