summaryrefslogtreecommitdiffstats
path: root/Services/php/Dockerfile
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2015-11-28 15:15:52 +0100
committerstartxfr <clarue@startx.fr>2015-11-28 15:15:52 +0100
commit4bb17b8c05c6e430293217797eef694671ec1e1b (patch)
tree2aec4634843d5ed54a8e71049e4e564f8d33973d /Services/php/Dockerfile
parent151b31b6f47fb3d96afdd66138ff40d92cac6202 (diff)
downloadphpmyadmin-4bb17b8c05c6e430293217797eef694671ec1e1b.tar.gz
phpmyadmin-4bb17b8c05c6e430293217797eef694671ec1e1b.tar.bz2
phpmyadmin-4bb17b8c05c6e430293217797eef694671ec1e1b.tar.xz
phpmyadmin-4bb17b8c05c6e430293217797eef694671ec1e1b.zip
final change in script lib for OS. Change in apache and php services
Diffstat (limited to 'Services/php/Dockerfile')
-rw-r--r--Services/php/Dockerfile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Services/php/Dockerfile b/Services/php/Dockerfile
index 60985df..b46f098 100644
--- a/Services/php/Dockerfile
+++ b/Services/php/Dockerfile
@@ -8,14 +8,17 @@ RUN dnf -y install php php-pecl-mongo php-cli php-pear \
php-bcmath php-pecl-zip php-php-gettext php-tcpdf \
php-tcpdf-dejavu-sans-fonts php-tidy \
&& dnf clean all
-# Copy application content
-COPY app/* /var/www/html/
-COPY httpd.conf /etc/httpd/conf.d/sx.conf
+COPY httpd.conf /etc/httpd/conf.d/app.conf
COPY php.ini /etc/php.d/sx.ini
-RUN chmod ug+r /var/www/html/* \
- && chown -R apache:apache /var/www/html /var/log/httpd
+COPY run.sh /bin/
+RUN chmod 775 /bin/run.sh && \
+ chmod ug+r /etc/httpd/conf.d/app.conf
+COPY ./ /data/www
+RUN rm -f /data/www/Dockerfile /data/www/httpd.conf /data/www/run.sh && \
+ chown -R apache:apache /data/www /data/logs && \
+ chmod ug+r -R /data/www
EXPOSE 80
EXPOSE 443
-VOLUME ["/var/www/html", "/var/log/httpd"]
-CMD ["/sx/httpd_run.sh"] \ No newline at end of file
+VOLUME ["/data/www","/data/logs"]
+CMD ["/bin/run.sh"] \ No newline at end of file