From a0fb843bdcfc7f917438fe76c8bb01db087bd60b Mon Sep 17 00:00:00 2001 From: startxfr Date: Sun, 23 Jul 2017 16:25:23 +0200 Subject: change in phpmyadmin for openshift --- Applications/phpmyadmin/Dockerfile | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'Applications/phpmyadmin/Dockerfile') diff --git a/Applications/phpmyadmin/Dockerfile b/Applications/phpmyadmin/Dockerfile index 855e1ad..57533e9 100644 --- a/Applications/phpmyadmin/Dockerfile +++ b/Applications/phpmyadmin/Dockerfile @@ -1,13 +1,19 @@ -FROM startx/sv-php +FROM centos/php-70-centos7:latest MAINTAINER Christophe LARUE +USER root +ENV APP_PATH=/opt/app-root/src RUN cd $APP_PATH && \ - wget -q https://files.phpmyadmin.net/phpMyAdmin/4.5.2/phpMyAdmin-4.5.2-all-languages.zip && \ - unzip phpMyAdmin-4.5.2-all-languages.zip && \ - rm -f phpMyAdmin-4.5.2-all-languages.zip && \ - mv phpMyAdmin-4.5.2-all-languages/* ./ && \ - rm -rf phpMyAdmin-4.5.2-all-languages + wget -q https://files.phpmyadmin.net/phpMyAdmin/4.7.3/phpMyAdmin-4.7.3-all-languages.zip && \ + unzip phpMyAdmin-4.7.3-all-languages.zip && \ + rm -f phpMyAdmin-4.7.3-all-languages.zip && \ + mv phpMyAdmin-4.7.3-all-languages/* ./ && \ + rm -rf phpMyAdmin-4.7.3-all-languages && \ + rm -f config.sample.inc.php && \ + chown -R 1001:0 $APP_PATH && \ + chmod -R ug+rwx $APP_PATH COPY config.inc.php $APP_PATH/config.inc.php -EXPOSE 80 443 -CMD [ "/bin/run.sh" ] \ No newline at end of file +USER 1001 +EXPOSE 8080 +CMD $STI_SCRIPTS_PATH/run \ No newline at end of file -- cgit v1.2.3