-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (23 loc) · 954 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ghcr.io/servercontainers/apache2-ssl-secure
RUN apt-get -q -y update && \
apt-get -q -y install mariadb-client \
php-mysql \
php-xml \
php-gd \
php-mbstring \
pwgen \
wget && \
apt-get -q -y clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
\
rm -rf /var/www/html/* && \
cd /var/www/html && \
wget -O - https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz | tar xzvf - && \
mv php* phpmyadmin && \
cp phpmyadmin/config.sample.inc.php phpmyadmin/config.inc.php && \
\
chmod 660 /var/www/html/phpmyadmin/config.inc.php && \
chown -R www-data:www-data /var/www/html/phpmyadmin
COPY config/www/index.php /var/www/html/index.php
COPY config/runit/phpmyadmin /container/config/runit/phpmyadmin
COPY . /container-2