Skip to content

Commit

Permalink
Merge pull request #4 from robsontenorio/upgrade-8.3
Browse files Browse the repository at this point in the history
PHP 8.3
  • Loading branch information
robsontenorio authored Feb 11, 2024
2 parents df1cabe + 51d93a9 commit 1582f9a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
36 changes: 18 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ ENV CONTAINER_ROLE=${CONTAINER_ROLE:-APP}
WORKDIR /var/www/app

RUN apt update \
# Add PHP 8.2 repository
# Add PHP 8.3 repository
&& apt install -y software-properties-common && add-apt-repository ppa:ondrej/php \
# PHP extensions
&& apt install -y \
php8.2-bcmath \
php8.2-cli \
php8.2-curl \
php8.2-fpm \
php8.2-gd \
php8.2-intl \
php8.2-mbstring \
php8.2-mysql \
php8.2-redis \
php8.2-sockets \
php8.2-sqlite3 \
php8.2-pcov \
php8.2-pgsql \
php8.2-opcache \
php8.2-xml \
php8.2-zip \
php8.3-bcmath \
php8.3-cli \
php8.3-curl \
php8.3-fpm \
php8.3-gd \
php8.3-intl \
php8.3-mbstring \
php8.3-mysql \
php8.3-redis \
php8.3-sockets \
php8.3-sqlite3 \
php8.3-pcov \
php8.3-pgsql \
php8.3-opcache \
php8.3-xml \
php8.3-zip \
# Extra
curl \
git \
Expand All @@ -55,7 +55,7 @@ RUN useradd -u 1000 -m -d /home/appuser -g appuser appuser
# Config files
COPY --chown=appuser:appuser start.sh /usr/local/bin/start
COPY --chown=appuser:appuser config/etc /etc
COPY --chown=appuser:appuser config/etc/php/8.2/cli/conf.d/y-php.ini /etc/php/8.2/fpm/conf.d/y-php.ini
COPY --chown=appuser:appuser config/etc/php/8.3/cli/conf.d/y-php.ini /etc/php/8.3/fpm/conf.d/y-php.ini

# Permissions for start script
RUN chmod a+x /usr/local/bin/start
Expand Down
2 changes: 1 addition & 1 deletion config/etc/nginx/sites-available/default
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ server {

# PHP
location ~ \.php$ {
fastcgi_pass unix:/home/appuser/php8.2-fpm.sock;
fastcgi_pass unix:/home/appuser/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ user = appuser
group = appuser
listen.owner = appuser
listen.group = appuser
listen = /home/appuser/php8.2-fpm.sock
listen = /home/appuser/php8.3-fpm.sock
clear_env = no

; fpm tuning
Expand Down
2 changes: 1 addition & 1 deletion config/etc/supervisor/conf.d-temp/php-fpm.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[program:php-fpm]
command=php-fpm8.2 -F
command=php-fpm8.3 -F
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
Expand Down

0 comments on commit 1582f9a

Please sign in to comment.