-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (18 loc) · 839 Bytes
/
Dockerfile
File metadata and controls
21 lines (18 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ghcr.io/servercontainers/apache2-ssl-secure
RUN apt-get -q -y update && \
apt-get -q -y install php-pgsql \
php-mbstring \
wget && \
apt-get -q -y clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
\
rm -rf /var/www/html/* && \
cd /var/www/html && \
export DOWNLOAD_URL=$(wget -O - https://api.github.com/repos/phppgadmin/phppgadmin/releases/latest | grep browser_download_url | tr '"' '\n' | grep tar.gz) && \
wget -O - "$DOWNLOAD_URL" | tar xzvf - && \
mv php* phppgadmin && \
chown -R www-data:www-data /var/www/html/phppgadmin && \
chmod 660 /var/www/html/phppgadmin/conf/config.inc.php
COPY config/www/index.php /var/www/html/index.php
COPY config/runit/phppgadmin /container/config/runit/phppgadmin
COPY . /container-2