File tree 3 files changed +18
-14
lines changed
etc/nginx/sites-available
3 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ server {
30
30
## Begin - PHP
31
31
location ~ \.php$ {
32
32
# Choose either a socket or TCP/IP address
33
- fastcgi_pass unix:/var/run/php/php7.3 -fpm.sock;
33
+ fastcgi_pass unix:/var/run/php/php8.2 -fpm.sock;
34
34
# fastcgi_pass unix:/var/run/php5-fpm.sock; #legacy
35
35
# fastcgi_pass 127.0.0.1:9000;
36
36
Original file line number Diff line number Diff line change @@ -11,9 +11,10 @@ DGID=${DGID:-911}
11
11
12
12
groupmod -o -g " $DGID " xyz
13
13
usermod -o -u " $DUID " xyz
14
- sed -i -e ' s/www-data/xyz/g' /etc/php/7.3 /fpm/pool.d/www.conf
14
+ sed -i -e ' s/www-data/xyz/g' /etc/php/8.2 /fpm/pool.d/www.conf
15
15
16
16
# Set Permissions
17
+ echo " > Set dir permissions (might take a while)"
17
18
chown -R xyz:xyz /var/www/grav
18
19
find /var/www/grav -type f | xargs chmod 664
19
20
find /var/www/grav/bin -type f | xargs chmod 775
@@ -23,7 +24,7 @@ umask 0002
23
24
24
25
# # Start services
25
26
echo " > Start services"
26
- service php7.3 -fpm start
27
+ service php8.2 -fpm start
27
28
service nginx start
28
29
29
30
# # Install Grav
@@ -34,6 +35,9 @@ echo "> Install Grav"
34
35
echo " > Start Cron"
35
36
service cron start
36
37
38
+ # # Ready to go !
39
+ echo " > Grav is ready to go !"
40
+
37
41
# # trap SIGINT and SIGTERM signals and gracefully exit
38
42
trap " service cron stop; kill \$ !; exit" SIGINT SIGTERM
39
43
tail -f /dev/null
Original file line number Diff line number Diff line change 1
- FROM bitnami/minideb:stretch
1
+ FROM bitnami/minideb:bullseye
2
2
3
3
RUN \
4
4
# # Docker User
@@ -17,17 +17,17 @@ RUN \
17
17
wget && \
18
18
# # Install PHP APT Repository
19
19
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
20
- echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php7.3 .list && \
21
- # # Install PHP 7.3
20
+ echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php8.2 .list && \
21
+ # # Install PHP 8.2
22
22
install_packages \
23
- php7.3 \
24
- php7.3 -fpm \
25
- php7.3 -gd \
26
- php7.3 -curl \
27
- php7.3 -zip \
28
- php7.3 -mbstring \
29
- php7.3 -xml \
30
- php7.3 -intl
23
+ php8.2 \
24
+ php8.2 -fpm \
25
+ php8.2 -gd \
26
+ php8.2 -curl \
27
+ php8.2 -zip \
28
+ php8.2 -mbstring \
29
+ php8.2 -xml \
30
+ php8.2 -intl
31
31
32
32
RUN \
33
33
# # Download GRAV
You can’t perform that action at this time.
0 commit comments