-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to Alpine Linux 3.19 and PHP 8.3
- Loading branch information
Showing
5 changed files
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
ARG ALPINE_VERSION=3.18 | ||
ARG ALPINE_VERSION=3.19 | ||
FROM alpine:${ALPINE_VERSION} | ||
LABEL Maintainer="Tim de Pater <[email protected]>" | ||
LABEL Description="Lightweight container with Nginx 1.24 & PHP 8.2 based on Alpine Linux." | ||
LABEL Description="Lightweight container with Nginx 1.24 & PHP 8.3 based on Alpine Linux." | ||
# Setup document root | ||
WORKDIR /var/www/html | ||
|
||
# Install packages and remove default server definition | ||
RUN apk add --no-cache \ | ||
curl \ | ||
nginx \ | ||
php82 \ | ||
php82-ctype \ | ||
php82-curl \ | ||
php82-dom \ | ||
php82-fileinfo \ | ||
php82-fpm \ | ||
php82-gd \ | ||
php82-intl \ | ||
php82-mbstring \ | ||
php82-mysqli \ | ||
php82-opcache \ | ||
php82-openssl \ | ||
php82-phar \ | ||
php82-session \ | ||
php82-tokenizer \ | ||
php82-xml \ | ||
php82-xmlreader \ | ||
php82-xmlwriter \ | ||
php83 \ | ||
php83-ctype \ | ||
php83-curl \ | ||
php83-dom \ | ||
php83-fileinfo \ | ||
php83-fpm \ | ||
php83-gd \ | ||
php83-intl \ | ||
php83-mbstring \ | ||
php83-mysqli \ | ||
php83-opcache \ | ||
php83-openssl \ | ||
php83-phar \ | ||
php83-session \ | ||
php83-tokenizer \ | ||
php83-xml \ | ||
php83-xmlreader \ | ||
php83-xmlwriter \ | ||
supervisor | ||
|
||
# Configure nginx - http | ||
|
@@ -35,7 +35,7 @@ COPY config/nginx.conf /etc/nginx/nginx.conf | |
COPY config/conf.d /etc/nginx/conf.d/ | ||
|
||
# Configure PHP-FPM | ||
ENV PHP_INI_DIR /etc/php82 | ||
ENV PHP_INI_DIR /etc/php83 | ||
COPY config/fpm-pool.conf ${PHP_INI_DIR}/php-fpm.d/www.conf | ||
COPY config/php.ini ${PHP_INI_DIR}/conf.d/custom.ini | ||
|
||
|
@@ -46,7 +46,7 @@ COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf | |
RUN chown -R nobody.nobody /var/www/html /run /var/lib/nginx /var/log/nginx | ||
|
||
# Create symlink for php | ||
RUN ln -s /usr/bin/php82 /usr/bin/php | ||
RUN ln -s /usr/bin/php83 /usr/bin/php | ||
|
||
# Switch to use a non-root user from here on | ||
USER nobody | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env sh | ||
apk --no-cache add curl | ||
curl --silent --fail http://app:8080 | grep 'PHP 8.2' | ||
curl --silent --fail http://app:8080 | grep 'PHP 8.3' |