Skip to content

Commit 222ed55

Browse files
Merge pull request #40 from alexislefebvre/feat-add-php-8.3-alpine-composer
feat: add php-8.3-alpine-composer
2 parents 999fe82 + 5be3e77 commit 222ed55

File tree

6 files changed

+32
-0
lines changed

6 files changed

+32
-0
lines changed

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ updates:
5454
commit-message:
5555
include: "scope"
5656
prefix: "docker"
57+
- package-ecosystem: "docker"
58+
directory: "/php-8.3-alpine-composer"
59+
schedule:
60+
interval: "weekly"
61+
commit-message:
62+
include: "scope"
63+
prefix: "docker"
5764

5865
# Maintain dependencies for GitHub Actions
5966
- package-ecosystem: "github-actions"

.github/workflows/push.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- php-8.1-jakzal-phpqa-gd
2323
- php-8.2-alpine-composer-gd
2424
- php-8.2-jakzal-phpqa-gd
25+
- php-8.3-alpine-composer
2526

2627
steps:
2728
- name: Set up Docker Buildx

.github/workflows/test.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- php-8.1-jakzal-phpqa-gd
2121
- php-8.2-alpine-composer-gd
2222
- php-8.2-jakzal-phpqa-gd
23+
- php-8.3-alpine-composer
2324

2425
steps:
2526
-

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ Images:
99
- [php-8.1-jakzal-phpqa-gd](php-8.1-jakzal-phpqa-gd): Use this image with GitHub actions or Drone
1010
- [php-8.2-alpine-composer-gd](php-8.2-alpine-composer-gd): Use this image with GitHub actions or Drone
1111
- [php-8.2-jakzal-phpqa-gd](php-8.2-jakzal-phpqa-gd): Use this image with GitHub actions or Drone
12+
- [php-8.3-alpine-composer](php-8.3-alpine-composer): Use this image with GitHub actions or Drone

php-8.3-alpine-composer/Dockerfile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM php:8.3-cli-alpine
2+
3+
ENV COMPOSER_ALLOW_SUPERUSER=1
4+
5+
# copy Composer from official image
6+
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
7+
8+
# git and unzip are necessary for Composer, mysql-client will install “mysqldump” command
9+
RUN apk add --no-cache git unzip mysql-client \
10+
&& docker-php-ext-install pdo_mysql
11+
12+
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS icu-dev \
13+
&& apk add --no-cache libintl \
14+
&& docker-php-ext-install intl
15+
16+
# necessary for code coverage
17+
RUN apk add --no-cache autoconf gcc g++ make \
18+
&& pecl install pcov && docker-php-ext-enable pcov \
19+
&& echo "pcov.enabled=0" >> $PHP_INI_DIR/php.ini

php-8.3-alpine-composer/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# PHP 8.3 from Alpine Linux with Composer
2+
3+
Use this image: `ghcr.io/alexislefebvre/php-8.3-alpine-composer`

0 commit comments

Comments
 (0)