ladogton2010 commited on
Commit
c8fb30f
·
1 Parent(s): f22712f
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -40,8 +40,8 @@ RUN cat /apache2/conf/httpd.conf
40
  RUN rm -rf /httpd-2.4.62
41
  RUN apt install -y locate
42
  RUN updatedb
43
- RUN a2enmod php
44
- RUN /apache2/bin/apachectl start
45
  RUN rm /apache2/htdocs/index.html
46
  RUN apt install -y php php-xml php-sqlite3
47
  RUN apt install -y libapache2-mod-php8.2 autoconf automake re2c bison
@@ -50,6 +50,7 @@ COPY test.html /apache2/htdocs/test.html
50
  RUN sed -i 's/Listen 80/Listen 7860/' /apache2/conf/httpd.conf
51
 
52
  # RUN which php-cgi;
 
53
  RUN which php
54
  RUN locate index.php;
55
  CMD [ "bash","-c", "/apache2/bin/apachectl start; curl localhost:7860; tail -F error.log" ]
 
40
  RUN rm -rf /httpd-2.4.62
41
  RUN apt install -y locate
42
  RUN updatedb
43
+ RUN cp -r /apache2/bin/ /usr/bin/
44
+ RUN apachectl start
45
  RUN rm /apache2/htdocs/index.html
46
  RUN apt install -y php php-xml php-sqlite3
47
  RUN apt install -y libapache2-mod-php8.2 autoconf automake re2c bison
 
50
  RUN sed -i 's/Listen 80/Listen 7860/' /apache2/conf/httpd.conf
51
 
52
  # RUN which php-cgi;
53
+ RUN a2enmod php
54
  RUN which php
55
  RUN locate index.php;
56
  CMD [ "bash","-c", "/apache2/bin/apachectl start; curl localhost:7860; tail -F error.log" ]