Spaces:
Runtime error
Runtime error
Commit
路
e511e31
1
Parent(s):
0de36b5
mejora al dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
FROM debian:12.6
|
| 2 |
ARG DEBIAN_FRONTEND=noninteractive
|
| 3 |
|
|
|
|
| 4 |
RUN apt update -y
|
| 5 |
RUN apt upgrade -y
|
| 6 |
RUN apt install -y dialog apt-utils
|
|
@@ -9,8 +10,11 @@ RUN apt search "Apache Portable Runtime Library"
|
|
| 9 |
RUN apt search "Apache Portable Runtime Utility "
|
| 10 |
RUN apt install -y libtool libapr1 libaprutil1 libtool-bin
|
| 11 |
|
|
|
|
| 12 |
RUN useradd -m -u 1000 user
|
| 13 |
# USER user
|
|
|
|
|
|
|
| 14 |
WORKDIR /home/user
|
| 15 |
RUN wget https://dlcdn.apache.org/httpd/httpd-2.4.62.tar.gz
|
| 16 |
RUN tar -xf httpd-2.4.62.tar.gz
|
|
@@ -90,4 +94,4 @@ USER user
|
|
| 90 |
COPY .htaccess /home/user/apache2/htdocs/
|
| 91 |
COPY app /home/user/apache2/htdocs/app
|
| 92 |
COPY public /home/user/apache2/htdocs/public
|
| 93 |
-
CMD [ "bash","-c", "ls -la /home/user/apache2/htdocs/; /home/user/apache2/bin/apachectl start; curl localhost:7860; tail -F error.log" ]
|
|
|
|
| 1 |
FROM debian:12.6
|
| 2 |
ARG DEBIAN_FRONTEND=noninteractive
|
| 3 |
|
| 4 |
+
# Actualizaci贸n de sistema
|
| 5 |
RUN apt update -y
|
| 6 |
RUN apt upgrade -y
|
| 7 |
RUN apt install -y dialog apt-utils
|
|
|
|
| 10 |
RUN apt search "Apache Portable Runtime Utility "
|
| 11 |
RUN apt install -y libtool libapr1 libaprutil1 libtool-bin
|
| 12 |
|
| 13 |
+
# Usuario agregado
|
| 14 |
RUN useradd -m -u 1000 user
|
| 15 |
# USER user
|
| 16 |
+
|
| 17 |
+
# Instalaci贸n de Apache
|
| 18 |
WORKDIR /home/user
|
| 19 |
RUN wget https://dlcdn.apache.org/httpd/httpd-2.4.62.tar.gz
|
| 20 |
RUN tar -xf httpd-2.4.62.tar.gz
|
|
|
|
| 94 |
COPY .htaccess /home/user/apache2/htdocs/
|
| 95 |
COPY app /home/user/apache2/htdocs/app
|
| 96 |
COPY public /home/user/apache2/htdocs/public
|
| 97 |
+
CMD [ "bash","-c", "ls -la /etc/apache2/sites-enabled/; ls -la /home/user/apache2/htdocs/; /home/user/apache2/bin/apachectl start; curl localhost:7860; tail -F error.log" ]
|