-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
50 lines (40 loc) · 1.08 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM alpine:3.12
MAINTAINER Peter Leitzen <[email protected]>
ENV RELEASE_DATE 2021-02-13
ENV PHPMYADMIN_VERSION 4.9.7
ENV PHPMYADMIN_DIR /usr/share/webapps/phpmyadmin/
ENV PHPMYADNIN_PACKAGE phpMyAdmin-$PHPMYADMIN_VERSION-english
ENV PHPMYADMIN_DOWNLOAD https://files.phpmyadmin.net/phpMyAdmin/$PHPMYADMIN_VERSION/$PHPMYADNIN_PACKAGE.tar.gz
ENV REQUIRED_PACKAGES \
apache2 \
php7 \
php7-apache2 \
php7-bz2 \
php7-ctype \
php7-gd \
php7-json \
php7-mbstring \
php7-mcrypt \
php7-mysqli \
php7-openssl \
php7-session \
php7-zip \
php7-zlib
RUN \
apk add -U --no-cache $REQUIRED_PACKAGES && \
rm /usr/bin/php7
RUN \
mkdir -p /usr/share/webapps && \
cd /tmp && \
wget -q -O - $PHPMYADMIN_DOWNLOAD | tar xzf - && \
mv $PHPMYADNIN_PACKAGE $PHPMYADMIN_DIR && \
rm -fr $PHPMYADMIN_DIR/{setup,config.sample.inc.php} && \
chown -R apache:apache $PHPMYADMIN_DIR && \
echo "Done"
ADD config.inc.php $PHPMYADMIN_DIR
ADD phpmyadmin.conf /etc/apache2/conf.d/
RUN mkdir -p /run/apache2
WORKDIR $PHPMYADMIN_DIR
EXPOSE 80
ADD entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]