ladogton2010 commited on
Commit
f3afbba
·
1 Parent(s): 5af37d0

Get php path

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -45,5 +45,8 @@ RUN apt install -y php php-xml php-sqlite3
45
  RUN apt install -y libapache2-mod-php autoconf automake re2c bison
46
  COPY index.php /apache2/htdocs/index.php
47
  COPY test.html /apache2/htdocs/test.html
48
- RUN locate a2enmod;
 
 
 
49
  CMD [ "bash","-c", "/apache2/bin/apachectl start; curl localhost:7860; tail -F error.log" ]
 
45
  RUN apt install -y libapache2-mod-php autoconf automake re2c bison
46
  COPY index.php /apache2/htdocs/index.php
47
  COPY test.html /apache2/htdocs/test.html
48
+ RUN sed -i 's/Listen 80/Listen 7860/' /apache2/conf/httpd.conf
49
+
50
+ RUN which php-cgi
51
+ RUN locate index.php;
52
  CMD [ "bash","-c", "/apache2/bin/apachectl start; curl localhost:7860; tail -F error.log" ]