-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from alexislefebvre/feat-add-php-8.3-alpine-co…
…mposer feat: add php-8.3-alpine-composer
- Loading branch information
Showing
6 changed files
with
32 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM php:8.3-cli-alpine | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
|
||
# copy Composer from official image | ||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer | ||
|
||
# git and unzip are necessary for Composer, mysql-client will install “mysqldump” command | ||
RUN apk add --no-cache git unzip mysql-client \ | ||
&& docker-php-ext-install pdo_mysql | ||
|
||
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS icu-dev \ | ||
&& apk add --no-cache libintl \ | ||
&& docker-php-ext-install intl | ||
|
||
# necessary for code coverage | ||
RUN apk add --no-cache autoconf gcc g++ make \ | ||
&& pecl install pcov && docker-php-ext-enable pcov \ | ||
&& echo "pcov.enabled=0" >> $PHP_INI_DIR/php.ini |
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,3 @@ | ||
# PHP 8.3 from Alpine Linux with Composer | ||
|
||
Use this image: `ghcr.io/alexislefebvre/php-8.3-alpine-composer` |