2023-09-11 18:32:30 +08:00
|
|
|
FROM alpine:latest
|
2022-01-17 15:56:05 +08:00
|
|
|
LABEL description="phpmyadmin on alpine"
|
|
|
|
LABEL maintainer="racken@one27.cf"
|
|
|
|
ENV container docker
|
2022-05-24 23:36:14 +08:00
|
|
|
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
|
2022-01-17 15:56:05 +08:00
|
|
|
RUN mkdir -p /var/www/html /etc/supervisor.d
|
|
|
|
COPY nginx-default.conf /etc/nginx/http.d/default.conf
|
2023-09-11 18:32:30 +08:00
|
|
|
RUN wget -O /tmp/pma.zip https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.zip
|
2022-01-17 15:56:05 +08:00
|
|
|
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"]
|