Skip to content

Commit

Permalink
Merge pull request #40 from alexislefebvre/feat-add-php-8.3-alpine-co…
Browse files Browse the repository at this point in the history
…mposer

feat: add php-8.3-alpine-composer
  • Loading branch information
alexislefebvre authored Jul 19, 2024
2 parents 999fe82 + 5be3e77 commit 222ed55
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ updates:
commit-message:
include: "scope"
prefix: "docker"
- package-ecosystem: "docker"
directory: "/php-8.3-alpine-composer"
schedule:
interval: "weekly"
commit-message:
include: "scope"
prefix: "docker"

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- php-8.1-jakzal-phpqa-gd
- php-8.2-alpine-composer-gd
- php-8.2-jakzal-phpqa-gd
- php-8.3-alpine-composer

steps:
- name: Set up Docker Buildx
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- php-8.1-jakzal-phpqa-gd
- php-8.2-alpine-composer-gd
- php-8.2-jakzal-phpqa-gd
- php-8.3-alpine-composer

steps:
-
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ Images:
- [php-8.1-jakzal-phpqa-gd](php-8.1-jakzal-phpqa-gd): Use this image with GitHub actions or Drone
- [php-8.2-alpine-composer-gd](php-8.2-alpine-composer-gd): Use this image with GitHub actions or Drone
- [php-8.2-jakzal-phpqa-gd](php-8.2-jakzal-phpqa-gd): Use this image with GitHub actions or Drone
- [php-8.3-alpine-composer](php-8.3-alpine-composer): Use this image with GitHub actions or Drone
19 changes: 19 additions & 0 deletions php-8.3-alpine-composer/Dockerfile
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
3 changes: 3 additions & 0 deletions php-8.3-alpine-composer/README.md
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`

0 comments on commit 222ed55

Please sign in to comment.