-1
FROM joomla:3.9-php7.2-apache
RUN apt-get update \
&& apt-get install -y apt-utils vim curl
COPY ./joomla_html /var/www/html
RUN chown -R www-data:www-data /var/www/html/
RUN chmod -R 777 /var/www/html/tmp
RUN chmod -R 777 /tmp
RUN chmod -R 777 /var/www/html/modules
RUN chmod -R 777 /var/www/html/components
RUN chmod -R 777 /var/www/html/administrator/logs
RUN chmod -R 777 /var/www/html/images
RUN chmod -R 777 /var/www/html/uploads
COPY ./docker/php.ini /usr/local/etc/php/conf.d/php-extras.ini
EXPOSE 80
Have some error trying to create the container ?
– Eduardo Gonçalves
No, it usually creates
– Arthu Barros de Oliveira
Please exchange the various runs for a single RUN. Layer reuse infrastructure may be getting in the way.
– Luiz Carlos Faria
Solved? Have some issues related to this, tried copying already with the permissions defined?
– Tuxpilgrim
Use one or several
RUN
does not interfere with the functionality of Dockerfile. Have you tried manually giving permissions inside your container after mounting your image? if yes, what was the result?– a_diogo