summaryrefslogtreecommitdiffstats
path: root/Applications/phpmyadmin/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/phpmyadmin/Dockerfile')
-rw-r--r--Applications/phpmyadmin/Dockerfile22
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