FROM alpine:latest LABEL description="phpmyadmin on alpine" LABEL maintainer="racken@one27.cf" ENV container docker RUN apk update; apk add bash tini php81-pdo_mysql php81-fpm nginx php81-session supervisor unzip php81-iconv php81-mysqli php81-xml php81-mbstring RUN mkdir -p /var/www/html /etc/supervisor.d COPY nginx-default.conf /etc/nginx/http.d/default.conf RUN wget -O /tmp/pma.zip https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.zip RUN unzip -qd /var/www/html /tmp/pma.zip; mv /var/www/html/phpMyAdmin* /var/www/html/pma; rm -f /tmp/pma.zip COPY config.inc.php /var/www/html/pma/config.inc.php RUN mkdir -p /var/www/html/pma/tmp/; chmod 777 /var/www/html/pma/tmp/ COPY run.ini /etc/supervisor.d/run.ini CMD ["/usr/bin/supervisord", "-n"]