mirror of
https://github.com/phpmyadmin/docker.git
synced 2026-08-24 02:24:16 -05:00
Make all files read only, except tmp
This commit is contained in:
@@ -117,7 +117,10 @@ RUN set -ex; \
|
||||
grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
|
||||
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
|
||||
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
|
||||
php -l /var/www/html/libraries/vendor_config.php;
|
||||
php -l /var/www/html/libraries/vendor_config.php; \
|
||||
find /var/www/html -type d -exec chmod 555 {} \;; \
|
||||
find /var/www/html -type f -exec chmod 444 {} \;; \
|
||||
chmod 777 /var/www/html/tmp;
|
||||
|
||||
# Copy configuration
|
||||
COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php
|
||||
|
||||
@@ -136,7 +136,10 @@ RUN set -ex; \
|
||||
grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
|
||||
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
|
||||
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
|
||||
php -l /var/www/html/libraries/vendor_config.php;
|
||||
php -l /var/www/html/libraries/vendor_config.php; \
|
||||
find /var/www/html -type d -exec chmod 555 {} \;; \
|
||||
find /var/www/html -type f -exec chmod 444 {} \;; \
|
||||
chmod 777 /var/www/html/tmp;
|
||||
|
||||
# Copy configuration
|
||||
COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php
|
||||
|
||||
+4
-1
@@ -137,7 +137,10 @@ RUN set -ex; \
|
||||
grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
|
||||
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
|
||||
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
|
||||
php -l /var/www/html/libraries/vendor_config.php;
|
||||
php -l /var/www/html/libraries/vendor_config.php; \
|
||||
find /var/www/html -type d -exec chmod 555 {} \;; \
|
||||
find /var/www/html -type f -exec chmod 444 {} \;; \
|
||||
chmod 777 /var/www/html/tmp;
|
||||
|
||||
# Copy configuration
|
||||
COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php
|
||||
|
||||
@@ -118,7 +118,10 @@ RUN set -ex; \
|
||||
grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
|
||||
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
|
||||
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
|
||||
php -l /var/www/html/libraries/vendor_config.php;
|
||||
php -l /var/www/html/libraries/vendor_config.php; \
|
||||
find /var/www/html -type d -exec chmod 555 {} \;; \
|
||||
find /var/www/html -type f -exec chmod 444 {} \;; \
|
||||
chmod 777 /var/www/html/tmp;
|
||||
|
||||
# Copy configuration
|
||||
COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php
|
||||
|
||||
+4
-1
@@ -134,7 +134,10 @@ RUN set -ex; \
|
||||
grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
|
||||
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
|
||||
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
|
||||
php -l /var/www/html/libraries/vendor_config.php;
|
||||
php -l /var/www/html/libraries/vendor_config.php; \
|
||||
find /var/www/html -type d -exec chmod 555 {} \;; \
|
||||
find /var/www/html -type f -exec chmod 444 {} \;; \
|
||||
chmod 777 /var/www/html/tmp;
|
||||
|
||||
# Copy configuration
|
||||
COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php
|
||||
|
||||
Reference in New Issue
Block a user