Spaces:
Runtime error
Runtime error
Commit
·
5b988dd
1
Parent(s):
903fc0c
only root
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -8,7 +8,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 |
WORKDIR /home/user
|
| 13 |
RUN wget https://dlcdn.apache.org/httpd/httpd-2.4.62.tar.gz
|
| 14 |
RUN tar -xf httpd-2.4.62.tar.gz
|
|
@@ -47,7 +47,7 @@ RUN rm -rf /home/user/httpd-2.4.62
|
|
| 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/
|
|
@@ -58,7 +58,7 @@ RUN rm /home/user/apache2/htdocs/index.html
|
|
| 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
|
|
|
|
| 8 |
RUN apt install -y libtool libapr1 libaprutil1 libtool-bin
|
| 9 |
|
| 10 |
RUN useradd -m -u 1000 user
|
| 11 |
+
# USER user
|
| 12 |
WORKDIR /home/user
|
| 13 |
RUN wget https://dlcdn.apache.org/httpd/httpd-2.4.62.tar.gz
|
| 14 |
RUN tar -xf httpd-2.4.62.tar.gz
|
|
|
|
| 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/
|
|
|
|
| 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
|