Skip to content

Commit

Permalink
Use chown from Docker directly
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Jan 10, 2025
1 parent 7884752 commit ec0d6a5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
5 changes: 2 additions & 3 deletions Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ RUN set -ex; \
apk del --no-network .fetch-deps

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

# Copy main script
COPY docker-entrypoint.sh /docker-entrypoint.sh
Expand Down
5 changes: 2 additions & 3 deletions Dockerfile-debian.template
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,8 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*

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

# Copy main script
COPY docker-entrypoint.sh /docker-entrypoint.sh
Expand Down
5 changes: 2 additions & 3 deletions apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,8 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*

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

# Copy main script
COPY docker-entrypoint.sh /docker-entrypoint.sh
Expand Down
5 changes: 2 additions & 3 deletions fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,8 @@ RUN set -ex; \
apk del --no-network .fetch-deps

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

# Copy main script
COPY docker-entrypoint.sh /docker-entrypoint.sh
Expand Down
5 changes: 2 additions & 3 deletions fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,8 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*

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

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

0 comments on commit ec0d6a5

Please sign in to comment.