collection.dockerfile/alpine/pma/Dockerfile

14 lines
773 B
Docker
Raw Normal View History

2022-05-24 23:36:14 +08:00
FROM alpine:3.16
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
2022-05-24 23:36:14 +08:00
RUN wget -O /tmp/pma.zip https://files.phpmyadmin.net/phpMyAdmin/5.2.0/phpMyAdmin-5.2.0-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"]