-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
Extend Container build to support multiple PHP version #113
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
FROM php:8.2.0RC6-zts-bullseye AS builder | ||
ARG php_base_tag=8.2.0RC6-zts | ||
|
||
FROM php:${php_base_tag}-bullseye AS builder | ||
|
||
COPY --from=golang:bullseye /usr/local/go/bin/go /usr/local/bin/go | ||
COPY --from=golang:bullseye /usr/local/go /usr/local/go | ||
|
@@ -45,7 +47,7 @@ RUN cd caddy/frankenphp && \ | |
|
||
ENTRYPOINT ["/bin/bash","-c"] | ||
|
||
FROM php:8.2.0RC6-zts-bullseye AS final | ||
FROM php:${php_base_tag}-bullseye AS final | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of using build-args, we should perhaps move the Dockerfiles into a dedicated directory If we need to go back to manually building PHP again for some reason, it would be nice if that didn't affect every single PHP version and it may be further complicated if the build steps are different between PHP versions. FWIW, it's likely to be somewhat different for PHP 8.3 due to some changes in Fibers (new build switches), at least for x86. I think this would also simplify the matrix somewhat. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe should we use the same templating system as official images? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
|
||
|
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.
You should also add this to the test workflow as well so we can see what the output is when it builds this PR. I'm not 100% sure, but I believe this change would prevent
latest
from being updated.