-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
47 lines (34 loc) · 1.7 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
FROM ubuntu:18.04
ARG PHPMYADMIN=4.8.5
RUN apt-get update;
RUN apt-get install -y wget tar vim unzip curl git nginx cron \
software-properties-common apt-transport-https
RUN add-apt-repository -y ppa:ondrej/php; \
export DEBIAN_FRONTEND=noninteractive; \
apt-get install -yq php5.6 php5.6-cli \
php5.6-common php5.6-curl php5.6-fpm php5.6-json \
php5.6-mysql php5.6-opcache php5.6-readline \
php5.6-xml php5.6-xsl php5.6-gd php5.6-intl \
php5.6-bz2 php5.6-bcmath php5.6-imap php5.6-gd \
php5.6-mbstring php5.6-pgsql php5.6-sqlite3 \
php5.6-xmlrpc php5.6-zip php5.6-odbc php5.6-snmp \
php5.6-interbase php5.6-ldap php5.6-tidy php5.6-memcache \
php5.6-memcached php-tcpdf php-redis php-imagick php-mongodb;
RUN apt-get install -yq mariadb-server mariadb-client; \
cd / && ( \
wget -q https://files.phpmyadmin.net/phpMyAdmin/$PHPMYADMIN/phpMyAdmin-$PHPMYADMIN-all-languages.zip; \
unzip -oq phpMyAdmin-$PHPMYADMIN-all-languages.zip; \
mv phpMyAdmin-$PHPMYADMIN-all-languages pma; \
rm -f phpMyAdmin-$PHPMYADMIN-all-languages.zip; \
)
RUN apt-get install -y memcached;
RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer
COPY root/ /
RUN chmod +x /etc/init.d/*
COPY shell/ /
COPY root/defaults/phpmyadmin/config.inc.php /pma/config.inc.php
RUN wget -q https://sourceforge.net/projects/nexusphp/files/latest/download -O defaults/nexusphp.v1.5.beta5.20120707.zip;\
unzip -oq /defaults/nexusphp.v1.5.beta5.20120707.zip -d /defaults/;\
mkdir /NexusPHP
RUN service mysql start && mysql < /defaults/mysql/init_table.sql && mysql nexusphp < /defaults/nexusphp.v1.5.beta5.20120707/_db/dbstructure.sql && mysql < /defaults/mysql/add_user.sql
CMD bash /start.sh && tail -f /dev/null