File Dockerfile of Package docker-phpmyadmin-container
# Specify the license of the container build description (see also the LICENSE file) # SPDX-License-Identifier: MIT # Define the names/tags of the container #!BuildTag: phpmyadmin:latest phpmyadmin:%PKG_VERSION% phpmyadmin:%PKG_VERSION%.%RELEASE% FROM nginx-config-fpm:latest # Define labels according to https://en.opensuse.org/Building_derived_containers # labelprefix=org.opensuse.phpmyadminssl LABEL org.opencontainers.image.title="PhpMyAdmin with SSL config from https://github.com/illuusio/nginx-config" LABEL org.opencontainers.image.description="PhpMyAdmin PHP-FPM 8.4 %PKG_VERSION%" LABEL org.opencontainers.image.version="%PKG_VERSION%.%RELEASE%" LABEL org.opensuse.reference="registry.opensuse.org/home/illuusio/images/images_15.6/phpmyadmin:%PKG_VERSION%.%RELEASE%" LABEL org.openbuildservice.disturl="%DISTURL%" LABEL org.opencontainers.image.created="%BUILDTIME%" # endlabelprefix # Which to install files USER root # Fill the image with content and clean the cache(s) RUN zypper --non-interactive ref && zypper --non-interactive install phpMyAdmin && zypper clean -a RUN mv /etc/nginx/vhosts.d/examples/phpmyadmin.conf.example /etc/nginx/vhosts.d/phpmyadmin.conf && chmod a-w /etc/nginx/vhosts.d/phpmyadmin.conf # Correct owner to nginx not www which is not available RUN chown -R nginx.nginx /var/cache/phpMyAdmin # Which back to nginx USER nginx