ladogton2010 commited on
Commit
6c930a8
·
1 Parent(s): 31f8c44
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  FROM debian:12.8-slim
2
  RUN DEBIAN_FRONTEND=noninteractive apt update -y
3
  RUN DEBIAN_FRONTEND=noninteractive apt upgrade -y
4
- RUN DEBIAN_FRONTEND=noninteractive apt install apache2 php -y
5
  RUN cat /etc/apache2/ports.conf
6
  RUN sed -i 's/Listen 80/Listen 8080/g' /etc/apache2/ports.conf
7
  RUN sed -i 's/:80/:8080/g' /etc/apache2/sites-enabled/000-default.conf
@@ -9,6 +9,7 @@ RUN cat /etc/apache2/sites-enabled/000-default.conf
9
  RUN cat /etc/apache2/ports.conf
10
  RUN apache2ctl -S
11
  RUN service apache2 start
 
12
  RUN chmod 777 -R /var/log/apache2; ls -la /var/log/apache2
13
  RUN chmod 777 /var/log/apache2/error.log; ls -la /var/log/apache2/error.log
14
 
 
1
  FROM debian:12.8-slim
2
  RUN DEBIAN_FRONTEND=noninteractive apt update -y
3
  RUN DEBIAN_FRONTEND=noninteractive apt upgrade -y
4
+ RUN DEBIAN_FRONTEND=noninteractive apt install apache2 php net-tools -y
5
  RUN cat /etc/apache2/ports.conf
6
  RUN sed -i 's/Listen 80/Listen 8080/g' /etc/apache2/ports.conf
7
  RUN sed -i 's/:80/:8080/g' /etc/apache2/sites-enabled/000-default.conf
 
9
  RUN cat /etc/apache2/ports.conf
10
  RUN apache2ctl -S
11
  RUN service apache2 start
12
+ RUN netstat -tulpn
13
  RUN chmod 777 -R /var/log/apache2; ls -la /var/log/apache2
14
  RUN chmod 777 /var/log/apache2/error.log; ls -la /var/log/apache2/error.log
15