Spaces:
Sleeping
Sleeping
Commit
·
eee5b2f
1
Parent(s):
d57ab1d
cleaning Dockerfile
Browse files- Dockerfile +15 -14
Dockerfile
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
FROM debian:12.8-slim
|
2 |
-
RUN printenv;
|
3 |
-
RUN set
|
4 |
RUN DEBIAN_FRONTEND=noninteractive apt update -y
|
5 |
RUN DEBIAN_FRONTEND=noninteractive apt upgrade -y
|
6 |
# RUN DEBIAN_FRONTEND=noninteractive apt search php
|
7 |
-
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
|
8 |
|
9 |
# NOTICE: Not enabling PHP 8.2 FPM by default.
|
10 |
# NOTICE: To enable PHP 8.2 FPM in Apache2 do:
|
@@ -14,7 +14,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt install -y apache2 php net-tools php-bcma
|
|
14 |
|
15 |
# RUN DEBIAN_FRONTEND=noninteractive apt install -y locate tree
|
16 |
# RUN apt clean --dry-run
|
17 |
-
RUN apt clean
|
18 |
RUN rm -rf /var/lib/apt/lists/* ;
|
19 |
# RUN cat /etc/apache2/ports.conf
|
20 |
RUN sed -i 's/Listen 80/Listen 8080/g' /etc/apache2/ports.conf
|
@@ -22,16 +22,17 @@ RUN sed -i 's/:80/:8080/g' /etc/apache2/sites-enabled/000-default.conf
|
|
22 |
RUN sed -i 's/variables_order = "GPCS"/variables_order = "EGPCS"/g' /etc/php/8.2/apache2/php.ini
|
23 |
# RUN cat /etc/apache2/sites-enabled/000-default.conf
|
24 |
# RUN cat /etc/apache2/ports.conf
|
25 |
-
RUN a2enmod rewrite
|
26 |
-
RUN a2enmod
|
27 |
-
RUN a2enmod
|
28 |
-
RUN a2enmod
|
29 |
-
RUN a2enmod
|
30 |
-
RUN a2enmod
|
31 |
-
RUN a2enmod
|
32 |
-
RUN a2enmod
|
33 |
-
RUN a2enmod
|
34 |
-
RUN a2enmod
|
|
|
35 |
#RUN a2enmod log_config;
|
36 |
RUN echo "<Directory /var/www/html>" >> /etc/apache2/apache2.conf
|
37 |
RUN echo " AllowOverride All" >> /etc/apache2/apache2.conf
|
|
|
1 |
FROM debian:12.8-slim
|
2 |
+
# RUN printenv;
|
3 |
+
# RUN set
|
4 |
RUN DEBIAN_FRONTEND=noninteractive apt update -y
|
5 |
RUN DEBIAN_FRONTEND=noninteractive apt upgrade -y
|
6 |
# RUN DEBIAN_FRONTEND=noninteractive apt search php
|
7 |
+
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 > /dev/null 2>&1
|
8 |
|
9 |
# NOTICE: Not enabling PHP 8.2 FPM by default.
|
10 |
# NOTICE: To enable PHP 8.2 FPM in Apache2 do:
|
|
|
14 |
|
15 |
# RUN DEBIAN_FRONTEND=noninteractive apt install -y locate tree
|
16 |
# RUN apt clean --dry-run
|
17 |
+
RUN DEBIAN_FRONTEND=noninteractive apt -y clean
|
18 |
RUN rm -rf /var/lib/apt/lists/* ;
|
19 |
# RUN cat /etc/apache2/ports.conf
|
20 |
RUN sed -i 's/Listen 80/Listen 8080/g' /etc/apache2/ports.conf
|
|
|
22 |
RUN sed -i 's/variables_order = "GPCS"/variables_order = "EGPCS"/g' /etc/php/8.2/apache2/php.ini
|
23 |
# RUN cat /etc/apache2/sites-enabled/000-default.conf
|
24 |
# RUN cat /etc/apache2/ports.conf
|
25 |
+
RUN a2enmod rewrite env cache setenvif unique_id authz_host cgi ext_filter headers include
|
26 |
+
# RUN a2enmod
|
27 |
+
# RUN a2enmod env
|
28 |
+
# RUN a2enmod cache
|
29 |
+
# RUN a2enmod setenvif
|
30 |
+
# RUN a2enmod unique_id
|
31 |
+
# RUN a2enmod authz_host
|
32 |
+
# RUN a2enmod cgi
|
33 |
+
# RUN a2enmod ext_filter
|
34 |
+
# RUN a2enmod headers
|
35 |
+
# RUN a2enmod include
|
36 |
#RUN a2enmod log_config;
|
37 |
RUN echo "<Directory /var/www/html>" >> /etc/apache2/apache2.conf
|
38 |
RUN echo " AllowOverride All" >> /etc/apache2/apache2.conf
|