diff options
author | startxfr <clarue@startx.fr> | 2017-07-23 16:25:23 +0200 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2017-07-23 16:25:23 +0200 |
commit | a0fb843bdcfc7f917438fe76c8bb01db087bd60b (patch) | |
tree | 61abebdb2f0981cb4e6518b4d6f784aec69685a2 /Applications/phpmyadmin/Dockerfile | |
parent | e69891ce630b7f4d6ea1ee7b2abde0cdf942f6c1 (diff) | |
download | phpmyadmin-a0fb843bdcfc7f917438fe76c8bb01db087bd60b.tar.gz phpmyadmin-a0fb843bdcfc7f917438fe76c8bb01db087bd60b.tar.bz2 phpmyadmin-a0fb843bdcfc7f917438fe76c8bb01db087bd60b.tar.xz phpmyadmin-a0fb843bdcfc7f917438fe76c8bb01db087bd60b.zip |
change in phpmyadmin for openshift
Diffstat (limited to 'Applications/phpmyadmin/Dockerfile')
-rw-r--r-- | Applications/phpmyadmin/Dockerfile | 22 |
1 files changed, 14 insertions, 8 deletions
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 <dev@startx.fr> +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 |