Spaces:
Runtime error
Runtime error
Commit
·
58c3e82
1
Parent(s):
da0faca
user user
Browse files- Dockerfile +11 -0
Dockerfile
CHANGED
|
@@ -7,12 +7,15 @@ RUN apt search "Apache Portable Runtime Library"
|
|
| 7 |
RUN apt search "Apache Portable Runtime Utility "
|
| 8 |
RUN apt install -y libtool libapr1 libaprutil1 libtool-bin
|
| 9 |
|
|
|
|
|
|
|
| 10 |
RUN wget https://dlcdn.apache.org/httpd/httpd-2.4.62.tar.gz
|
| 11 |
RUN tar -xf httpd-2.4.62.tar.gz
|
| 12 |
RUN cd httpd-2.4.62
|
| 13 |
WORKDIR /httpd-2.4.62
|
| 14 |
RUN ls -la
|
| 15 |
|
|
|
|
| 16 |
RUN echo
|
| 17 |
RUN echo ===================================================================
|
| 18 |
RUN cat README
|
|
@@ -38,15 +41,23 @@ RUN sed -i 's/Listen 80/Listen 7860/' /apache2/conf/httpd.conf
|
|
| 38 |
RUN cat /apache2/conf/httpd.conf
|
| 39 |
# RUN /apache2/bin/apachectl start
|
| 40 |
RUN rm -rf /httpd-2.4.62
|
|
|
|
|
|
|
| 41 |
RUN apt install -y locate
|
| 42 |
RUN updatedb
|
|
|
|
|
|
|
| 43 |
RUN ls /apache2/bin/ -la
|
| 44 |
RUN cp -r /apache2/bin/ /usr/bin/
|
| 45 |
RUN ls /usr/bin/ -la
|
| 46 |
RUN apachectl start
|
| 47 |
RUN rm /apache2/htdocs/index.html
|
|
|
|
|
|
|
| 48 |
RUN apt install -y php php-xml php-sqlite3
|
| 49 |
RUN apt install -y libapache2-mod-php8.2 autoconf automake re2c bison
|
|
|
|
|
|
|
| 50 |
COPY index.php /apache2/htdocs/index.php
|
| 51 |
COPY test.html /apache2/htdocs/test.html
|
| 52 |
RUN sed -i 's/Listen 80/Listen 7860/' /apache2/conf/httpd.conf
|
|
|
|
| 7 |
RUN apt search "Apache Portable Runtime Utility "
|
| 8 |
RUN apt install -y libtool libapr1 libaprutil1 libtool-bin
|
| 9 |
|
| 10 |
+
RUN useradd -m -u 1000 user
|
| 11 |
+
USER user
|
| 12 |
RUN wget https://dlcdn.apache.org/httpd/httpd-2.4.62.tar.gz
|
| 13 |
RUN tar -xf httpd-2.4.62.tar.gz
|
| 14 |
RUN cd httpd-2.4.62
|
| 15 |
WORKDIR /httpd-2.4.62
|
| 16 |
RUN ls -la
|
| 17 |
|
| 18 |
+
|
| 19 |
RUN echo
|
| 20 |
RUN echo ===================================================================
|
| 21 |
RUN cat README
|
|
|
|
| 41 |
RUN cat /apache2/conf/httpd.conf
|
| 42 |
# RUN /apache2/bin/apachectl start
|
| 43 |
RUN rm -rf /httpd-2.4.62
|
| 44 |
+
|
| 45 |
+
USER root
|
| 46 |
RUN apt install -y locate
|
| 47 |
RUN updatedb
|
| 48 |
+
USER user
|
| 49 |
+
|
| 50 |
RUN ls /apache2/bin/ -la
|
| 51 |
RUN cp -r /apache2/bin/ /usr/bin/
|
| 52 |
RUN ls /usr/bin/ -la
|
| 53 |
RUN apachectl start
|
| 54 |
RUN rm /apache2/htdocs/index.html
|
| 55 |
+
|
| 56 |
+
USER root
|
| 57 |
RUN apt install -y php php-xml php-sqlite3
|
| 58 |
RUN apt install -y libapache2-mod-php8.2 autoconf automake re2c bison
|
| 59 |
+
USER user
|
| 60 |
+
|
| 61 |
COPY index.php /apache2/htdocs/index.php
|
| 62 |
COPY test.html /apache2/htdocs/test.html
|
| 63 |
RUN sed -i 's/Listen 80/Listen 7860/' /apache2/conf/httpd.conf
|