Skip to content

Commit ebc6f2e

Browse files
committed
Update Docker Config
Update Debian version Update to PHP 8.2
1 parent efaa0c5 commit ebc6f2e

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

Docker/etc/nginx/sites-available/default

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ server {
3030
## Begin - PHP
3131
location ~ \.php$ {
3232
# 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;
3434
# fastcgi_pass unix:/var/run/php5-fpm.sock; #legacy
3535
# fastcgi_pass 127.0.0.1:9000;
3636

Docker/init

+6-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ DGID=${DGID:-911}
1111

1212
groupmod -o -g "$DGID" xyz
1313
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
1515

1616
# Set Permissions
17+
echo "> Set dir permissions (might take a while)"
1718
chown -R xyz:xyz /var/www/grav
1819
find /var/www/grav -type f | xargs chmod 664
1920
find /var/www/grav/bin -type f | xargs chmod 775
@@ -23,7 +24,7 @@ umask 0002
2324

2425
## Start services
2526
echo "> Start services"
26-
service php7.3-fpm start
27+
service php8.2-fpm start
2728
service nginx start
2829

2930
## Install Grav
@@ -34,6 +35,9 @@ echo "> Install Grav"
3435
echo "> Start Cron"
3536
service cron start
3637

38+
## Ready to go !
39+
echo "> Grav is ready to go !"
40+
3741
## trap SIGINT and SIGTERM signals and gracefully exit
3842
trap "service cron stop; kill \$!; exit" SIGINT SIGTERM
3943
tail -f /dev/null

Dockerfile

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bitnami/minideb:stretch
1+
FROM bitnami/minideb:bullseye
22

33
RUN \
44
## Docker User
@@ -17,17 +17,17 @@ RUN \
1717
wget && \
1818
## Install PHP APT Repository
1919
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
2222
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
3131

3232
RUN \
3333
## Download GRAV

0 commit comments

Comments
 (0)