Skip to content

Commit

Permalink
Ref #187 - Make all the data www-data:www-data
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Apr 2, 2024
1 parent 6070d87 commit 6d69b77
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,12 @@ RUN set -ex; \
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; \
chown -R www-data:www-data -R /var/www/html/; \
apk del --no-network .fetch-deps

# Copy configuration
COPY config.inc.php /etc/phpmyadmin/config.inc.php
RUN chown www-data:www-data -R /etc/phpmyadmin/

# Copy main script
COPY docker-entrypoint.sh /docker-entrypoint.sh
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile-debian.template
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ RUN set -ex; \
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; \
chown -R www-data:www-data -R /var/www/html/; \
\
apt-mark auto '.*' > /dev/null; \
apt-mark manual $savedAptMark; \
Expand All @@ -138,6 +139,7 @@ RUN set -ex; \

# Copy configuration
COPY config.inc.php /etc/phpmyadmin/config.inc.php
RUN chown www-data:www-data -R /etc/phpmyadmin/

# Copy main script
COPY docker-entrypoint.sh /docker-entrypoint.sh
Expand Down
2 changes: 2 additions & 0 deletions apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ RUN set -ex; \
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; \
chown -R www-data:www-data -R /var/www/html/; \
\
apt-mark auto '.*' > /dev/null; \
apt-mark manual $savedAptMark; \
Expand All @@ -139,6 +140,7 @@ RUN set -ex; \

# Copy configuration
COPY config.inc.php /etc/phpmyadmin/config.inc.php
RUN chown www-data:www-data -R /etc/phpmyadmin/

# Copy main script
COPY docker-entrypoint.sh /docker-entrypoint.sh
Expand Down
2 changes: 2 additions & 0 deletions fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@ RUN set -ex; \
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; \
chown -R www-data:www-data -R /var/www/html/; \
apk del --no-network .fetch-deps

# Copy configuration
COPY config.inc.php /etc/phpmyadmin/config.inc.php
RUN chown www-data:www-data -R /etc/phpmyadmin/

# Copy main script
COPY docker-entrypoint.sh /docker-entrypoint.sh
Expand Down
2 changes: 2 additions & 0 deletions fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ RUN set -ex; \
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; \
chown -R www-data:www-data -R /var/www/html/; \
\
apt-mark auto '.*' > /dev/null; \
apt-mark manual $savedAptMark; \
Expand All @@ -136,6 +137,7 @@ RUN set -ex; \

# Copy configuration
COPY config.inc.php /etc/phpmyadmin/config.inc.php
RUN chown www-data:www-data -R /etc/phpmyadmin/

# Copy main script
COPY docker-entrypoint.sh /docker-entrypoint.sh
Expand Down

0 comments on commit 6d69b77

Please sign in to comment.