Update Dockerfile

Signed-off-by: ZhiFeng Hu <hufeng1987@gmail.com>
This commit is contained in:
ZhiFeng Hu
2015-11-06 10:27:39 +08:00
commit 063cecc62b
2 changed files with 28 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM netroby/alpine-php
VOLUME /www
RUN wget -c https://github.com/phpmyadmin/phpmyadmin/archive/RELEASE_4_5_1.tar.gz; \
tar zxvf phpmyadmin-RELEASE_4_5_1.tar.gz;\
mv phpmyadmin-RELEASE_4_5_1 /www; \
unlink *.tar.gz
COPY config.inc.php /www/config.inc.php
ENV HOME /root
EXPOSE 8080
WORKDIR /root
ENTRYPOINT ["php", "-S", "0.0.0.0:8080", "-t", "/www/"]
+11
View File
@@ -0,0 +1,11 @@
<?php
$cfg['blowfish_secret'] = 'xkjdkfj2x83kx';
$i = 0;
$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = 'db';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';