File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,10 +114,12 @@ RUN set -ex; \
114114 sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
115115 grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
116116 php -l /var/www/html/libraries/vendor_config.php; \
117+ chown -R www-data:www-data -R /var/www/html/; \
117118 apk del --no-network .fetch-deps
118119
119120# Copy configuration
120121COPY config.inc.php /etc/phpmyadmin/config.inc.php
122+ RUN chown www-data:www-data -R /etc/phpmyadmin/
121123
122124# Copy main script
123125COPY docker-entrypoint.sh /docker-entrypoint.sh
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ RUN set -ex; \
130130 sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
131131 grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
132132 php -l /var/www/html/libraries/vendor_config.php; \
133+ chown -R www-data:www-data -R /var/www/html/; \
133134 \
134135 apt-mark auto '.*' > /dev/null; \
135136 apt-mark manual $savedAptMark; \
@@ -138,6 +139,7 @@ RUN set -ex; \
138139
139140# Copy configuration
140141COPY config.inc.php /etc/phpmyadmin/config.inc.php
142+ RUN chown www-data:www-data -R /etc/phpmyadmin/
141143
142144# Copy main script
143145COPY docker-entrypoint.sh /docker-entrypoint.sh
Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ RUN set -ex; \
131131 sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
132132 grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
133133 php -l /var/www/html/libraries/vendor_config.php; \
134+ chown -R www-data:www-data -R /var/www/html/; \
134135 \
135136 apt-mark auto '.*' > /dev/null; \
136137 apt-mark manual $savedAptMark; \
@@ -139,6 +140,7 @@ RUN set -ex; \
139140
140141# Copy configuration
141142COPY config.inc.php /etc/phpmyadmin/config.inc.php
143+ RUN chown www-data:www-data -R /etc/phpmyadmin/
142144
143145# Copy main script
144146COPY docker-entrypoint.sh /docker-entrypoint.sh
Original file line number Diff line number Diff line change @@ -115,10 +115,12 @@ RUN set -ex; \
115115 sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
116116 grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
117117 php -l /var/www/html/libraries/vendor_config.php; \
118+ chown -R www-data:www-data -R /var/www/html/; \
118119 apk del --no-network .fetch-deps
119120
120121# Copy configuration
121122COPY config.inc.php /etc/phpmyadmin/config.inc.php
123+ RUN chown www-data:www-data -R /etc/phpmyadmin/
122124
123125# Copy main script
124126COPY docker-entrypoint.sh /docker-entrypoint.sh
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ RUN set -ex; \
128128 sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
129129 grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
130130 php -l /var/www/html/libraries/vendor_config.php; \
131+ chown -R www-data:www-data -R /var/www/html/; \
131132 \
132133 apt-mark auto '.*' > /dev/null; \
133134 apt-mark manual $savedAptMark; \
@@ -136,6 +137,7 @@ RUN set -ex; \
136137
137138# Copy configuration
138139COPY config.inc.php /etc/phpmyadmin/config.inc.php
140+ RUN chown www-data:www-data -R /etc/phpmyadmin/
139141
140142# Copy main script
141143COPY docker-entrypoint.sh /docker-entrypoint.sh
You can’t perform that action at this time.
0 commit comments