ladogton2010 commited on
Commit
3ed9432
·
1 Parent(s): 40190f6

dockerfile improvements

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -2,7 +2,8 @@ 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 -y apache2 php net-tools php-bcmath php-bz2 php-intl php-gd php-mbstring php-mysql php-zip php-fpm php-cgi php-curl php-xml > /dev/null 2>&1
5
- RUN a2enmod proxy_fcgi setenvif
 
6
  RUN DEBIAN_FRONTEND=noninteractive apt -y clean
7
  RUN rm -rf /var/lib/apt/lists/* ;
8
  RUN sed -i 's/Listen 80/Listen 8080/g' /etc/apache2/ports.conf
@@ -10,18 +11,17 @@ RUN sed -i 's/:80/:8080/g' /etc/apache2/sites-enabled/000-default.conf
10
  RUN sed -i 's/variables_order = "GPCS"/variables_order = "EGPCS"/g' /etc/php/8.2/apache2/php.ini
11
  RUN sed -i 's/variables_order = "GPCS"/variables_order = "EGPCS"/g' /etc/php/8.2/fpm/php.ini
12
  RUN sed -i 's/variables_order = "GPCS"/variables_order = "EGPCS"/g' /etc/php/8.2/cli/php.ini
13
- RUN a2enmod rewrite env cache setenvif unique_id authz_host cgi ext_filter headers include
14
  RUN echo "<Directory /var/www/html>" >> /etc/apache2/apache2.conf
15
  RUN echo " AllowOverride All" >> /etc/apache2/apache2.conf
16
  RUN echo "</Directory>" >> /etc/apache2/apache2.conf
17
  RUN service apache2 start
18
- RUN service php8.2-fpm start
19
- RUN service --status-all
20
  RUN chmod 777 -R /var/log/apache2 /var/run/apache2; ls -la /var/log/apache2
21
  RUN rm -rf /var/www/html/index.html
22
  RUN chmod 777 /var/log/apache2/error.log; ls -la /var/log/apache2/error.log
23
- RUN chmod 777 /var/log/php8.2-fpm.log; ls -la /var/log/php8.2-fpm.log
24
- RUN chmod 777 /run/php/; ls -la /run/
25
  RUN touch .env
26
  RUN chmod 777 .env
27
  RUN echo ". /.env" >> /etc/apache2/envvars
 
2
  RUN DEBIAN_FRONTEND=noninteractive apt update -y
3
  RUN DEBIAN_FRONTEND=noninteractive apt upgrade -y
4
  RUN DEBIAN_FRONTEND=noninteractive apt install -y apache2 php net-tools php-bcmath php-bz2 php-intl php-gd php-mbstring php-mysql php-zip php-fpm php-cgi php-curl php-xml > /dev/null 2>&1
5
+ #RUN a2enmod proxy_fcgi setenvif
6
+ RUN a2enmod rewrite env cache setenvif unique_id authz_host cgi ext_filter headers include
7
  RUN DEBIAN_FRONTEND=noninteractive apt -y clean
8
  RUN rm -rf /var/lib/apt/lists/* ;
9
  RUN sed -i 's/Listen 80/Listen 8080/g' /etc/apache2/ports.conf
 
11
  RUN sed -i 's/variables_order = "GPCS"/variables_order = "EGPCS"/g' /etc/php/8.2/apache2/php.ini
12
  RUN sed -i 's/variables_order = "GPCS"/variables_order = "EGPCS"/g' /etc/php/8.2/fpm/php.ini
13
  RUN sed -i 's/variables_order = "GPCS"/variables_order = "EGPCS"/g' /etc/php/8.2/cli/php.ini
 
14
  RUN echo "<Directory /var/www/html>" >> /etc/apache2/apache2.conf
15
  RUN echo " AllowOverride All" >> /etc/apache2/apache2.conf
16
  RUN echo "</Directory>" >> /etc/apache2/apache2.conf
17
  RUN service apache2 start
18
+ #RUN service php8.2-fpm start
19
+ #RUN service --status-all
20
  RUN chmod 777 -R /var/log/apache2 /var/run/apache2; ls -la /var/log/apache2
21
  RUN rm -rf /var/www/html/index.html
22
  RUN chmod 777 /var/log/apache2/error.log; ls -la /var/log/apache2/error.log
23
+ #RUN chmod 777 /var/log/php8.2-fpm.log; ls -la /var/log/php8.2-fpm.log
24
+ #RUN chmod 777 /run/php/; ls -la /run/
25
  RUN touch .env
26
  RUN chmod 777 .env
27
  RUN echo ". /.env" >> /etc/apache2/envvars