Spaces:
Runtime error
Runtime error
Commit
·
142fdcc
1
Parent(s):
eff3714
mvc2
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -75,8 +75,6 @@ RUN make install
|
|
75 |
RUN apt install -y php-xml php-sqlite3
|
76 |
# USER user
|
77 |
|
78 |
-
COPY index.php /home/user/apache2/htdocs/index.php
|
79 |
-
COPY test.html /home/user/apache2/htdocs/test.html
|
80 |
RUN sed -i 's/DirectoryIndex index.html/DirectoryIndex index.php index.html/' /home/user/apache2/conf/httpd.conf
|
81 |
RUN echo "LoadModule php_module modules/libphp.so" >> /home/user/apache2/conf/httpd.conf
|
82 |
RUN echo "" >> /home/user/apache2/conf/httpd.conf
|
@@ -89,4 +87,7 @@ RUN which php
|
|
89 |
RUN updatedb
|
90 |
RUN locate index.php;
|
91 |
USER user
|
|
|
|
|
|
|
92 |
CMD [ "bash","-c", "/home/user/apache2/bin/apachectl start; curl localhost:7860; tail -F error.log" ]
|
|
|
75 |
RUN apt install -y php-xml php-sqlite3
|
76 |
# USER user
|
77 |
|
|
|
|
|
78 |
RUN sed -i 's/DirectoryIndex index.html/DirectoryIndex index.php index.html/' /home/user/apache2/conf/httpd.conf
|
79 |
RUN echo "LoadModule php_module modules/libphp.so" >> /home/user/apache2/conf/httpd.conf
|
80 |
RUN echo "" >> /home/user/apache2/conf/httpd.conf
|
|
|
87 |
RUN updatedb
|
88 |
RUN locate index.php;
|
89 |
USER user
|
90 |
+
COPY .htaccess /home/user/apache2/htdocs/
|
91 |
+
COPY app /home/user/apache2/htdocs/
|
92 |
+
COPY public /home/user/apache2/htdocs/
|
93 |
CMD [ "bash","-c", "/home/user/apache2/bin/apachectl start; curl localhost:7860; tail -F error.log" ]
|