-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add php 8.3 #66
Merged
Add php 8.3 #66
Changes from 3 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
############################################ | ||
# PHPDocker.io PHP 8.3 / CLI and FPM image # | ||
############################################ | ||
|
||
### CLI ### | ||
|
||
FROM ubuntu:jammy AS cli | ||
|
||
# Fixes some weird terminal issues such as broken clear / CTRL+L | ||
ENV TERM=linux | ||
|
||
# Ensure apt doesn't ask questions when installing stuff | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install Ondrej repos for Ubuntu jammy, PHP, composer and selected extensions - better selection than | ||
# the distro's packages | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends gnupg \ | ||
&& echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu jammy main" > /etc/apt/sources.list.d/ondrej-php.list \ | ||
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \ | ||
&& apt-get update \ | ||
&& apt-get -y --no-install-recommends install \ | ||
ca-certificates \ | ||
curl \ | ||
unzip \ | ||
php8.3-apcu \ | ||
php8.3-cli \ | ||
php8.3-curl \ | ||
php8.3-mbstring \ | ||
php8.3-opcache \ | ||
php8.3-readline \ | ||
php8.3-xml \ | ||
php8.3-zip \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* ~/.composer | ||
|
||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer | ||
|
||
CMD ["php", "-a"] | ||
|
||
### FPM ### | ||
|
||
FROM cli AS fpm | ||
|
||
# Install FPM | ||
RUN apt-get update \ | ||
&& apt-get -y --no-install-recommends install php8.3-fpm \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* | ||
|
||
STOPSIGNAL SIGQUIT | ||
|
||
# PHP-FPM packages need a nudge to make them docker-friendly | ||
COPY overrides.conf /etc/php/8.3/fpm/pool.d/z-overrides.conf | ||
|
||
CMD ["/usr/sbin/php-fpm8.3", "-O" ] | ||
|
||
# Open up fcgi port | ||
EXPOSE 9000 |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# PHPDocker.io - PHP 8.3 / CLI, FPM and Swoole container images | ||
|
||
Ubuntu 22.04 PHP 8.3 CLI and FPM container images for [PHPDocker.io](http://phpdocker.io) projects. Packages are provided by [Ondřej Surý](https://deb.sury.org/). | ||
|
||
Far smaller in size than PHP's official container. No need to compile any extensions: simply run `apt-get install php8.3-EXTENSION_NAME` as part of your Dockerfile | ||
|
||
*Note on logging:* configure your application to stream logs into `php://stdout`. That's it. |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[global] | ||
; Override default pid file | ||
pid = /run/php-fpm.pid | ||
|
||
; Avoid logs being sent to syslog | ||
error_log = /proc/self/fd/2 | ||
|
||
; Set this to php default's max_execution_time to allow children to stop gracefully when fpm is commanded to stop | ||
; This helps avoiding 502's | ||
process_control_timeout = 30 | ||
|
||
; Do not daemonize (eg send process to the background) | ||
daemonize = no | ||
|
||
[www] | ||
; Access from webserver container is via network, not socket file | ||
listen = [::]:9000 | ||
|
||
; Redirect logs to stdout - FPM closes /dev/std* on startup | ||
access.log = /proc/self/fd/2 | ||
catch_workers_output = yes | ||
|
||
; Remove "pool www" decoration from log output | ||
decorate_workers_output = no | ||
|
||
; Required to allow config-by-environment | ||
clear_env = no |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo? (should be php83)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch