14 lines
768 B
Docker
14 lines
768 B
Docker
|
FROM alpine:latest
|
||
|
LABEL description="phpmyadmin on alpine"
|
||
|
LABEL maintainer="racken@one27.cf"
|
||
|
ENV container docker
|
||
|
RUN apk update; apk add bash tini php8-pdo_mysql php8-fpm nginx php8-session supervisor unzip php8-iconv php8-mysqli php8-xml php8-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.1.1/phpMyAdmin-5.1.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"]
|