ladogton2010 commited on
Commit
04775f6
·
1 Parent(s): 952ca2f
Files changed (1) hide show
  1. Dockerfile +12 -11
Dockerfile CHANGED
@@ -30,38 +30,39 @@ RUN cat INSTALL
30
  RUN echo ===================================================================
31
  RUN echo
32
 
33
- RUN ./configure --prefix=/apache2
 
34
  RUN make
35
  RUN make install
36
  # $HOME/apache
37
  # /apache2/conf/httpd.conf
38
 
39
- RUN chmod 777 -R /apache2
40
- RUN ls -la /apache2/bin
41
- RUN sed -i 's/Listen 80/Listen 7860/' /apache2/conf/httpd.conf
42
  RUN cat /apache2/conf/httpd.conf
43
  # RUN /apache2/bin/apachectl start
44
- RUN rm -rf /httpd-2.4.62
45
 
46
  USER root
47
  RUN apt install -y locate
48
  RUN updatedb
49
  USER user
50
 
51
- RUN ls /apache2/bin/ -la
52
- RUN cp -r /apache2/bin/ /usr/bin/
53
  RUN ls /usr/bin/ -la
54
  RUN apachectl start
55
- RUN rm /apache2/htdocs/index.html
56
 
57
  USER root
58
  RUN apt install -y php php-xml php-sqlite3
59
  RUN apt install -y libapache2-mod-php8.2 autoconf automake re2c bison
60
  USER user
61
 
62
- COPY index.php /apache2/htdocs/index.php
63
- COPY test.html /apache2/htdocs/test.html
64
- RUN sed -i 's/Listen 80/Listen 7860/' /apache2/conf/httpd.conf
65
 
66
  # RUN which php-cgi;
67
  RUN a2enmod php
 
30
  RUN echo ===================================================================
31
  RUN echo
32
 
33
+
34
+ RUN ./configure --prefix=/home/user/apache2
35
  RUN make
36
  RUN make install
37
  # $HOME/apache
38
  # /apache2/conf/httpd.conf
39
 
40
+ RUN chmod 777 -R /home/user/apache2
41
+ RUN ls -la /home/user/apache2/bin
42
+ RUN sed -i 's/Listen 80/Listen 7860/' /home/user/apache2/conf/httpd.conf
43
  RUN cat /apache2/conf/httpd.conf
44
  # RUN /apache2/bin/apachectl start
45
+ RUN rm -rf /home/user/httpd-2.4.62
46
 
47
  USER root
48
  RUN apt install -y locate
49
  RUN updatedb
50
  USER user
51
 
52
+ RUN ls /home/user/apache2/bin/ -la
53
+ RUN cp -r /home/user/apache2/bin/ /usr/bin/
54
  RUN ls /usr/bin/ -la
55
  RUN apachectl start
56
+ RUN rm /home/user/apache2/htdocs/index.html
57
 
58
  USER root
59
  RUN apt install -y php php-xml php-sqlite3
60
  RUN apt install -y libapache2-mod-php8.2 autoconf automake re2c bison
61
  USER user
62
 
63
+ COPY index.php /home/user/apache2/htdocs/index.php
64
+ COPY test.html /home/user/apache2/htdocs/test.html
65
+ RUN sed -i 's/Listen 80/Listen 7860/' /home/user/apache2/conf/httpd.conf
66
 
67
  # RUN which php-cgi;
68
  RUN a2enmod php