Skip to content

Commit

Permalink
Introduce a php-fpm 8.1 container
Browse files Browse the repository at this point in the history
This container (dev version) does not install apcu and apcu-bc.
  • Loading branch information
MKodde committed Nov 22, 2022
1 parent 1e18f6f commit 915b6a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ jobs:
- name: Build the php-fpm prod container and push to GitHub Packages
uses: docker/build-push-action@v2
with:
tags: ghcr.io/openconext/openconext-containers/openconext-phpfpm:latest
tags: ghcr.io/openconext/openconext-containers/openconext-phpfpm:81
context: docker/php-fpm/
target: fpmprod
push: true

- name: Build the php-fpm dev container and push to GitHub Packages
uses: docker/build-push-action@v2
with:
tags: ghcr.io/openconext/openconext-containers/openconext-phpfpm-dev:latest
tags: ghcr.io/openconext/openconext-containers/openconext-phpfpm-dev:81
context: docker/php-fpm/
target: fpmdev
push: true
6 changes: 2 additions & 4 deletions docker/php-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.2-fpm-alpine AS fpmprod
FROM php:8.1-fpm-alpine AS fpmprod
RUN apk add --no-cache libxml2-dev freetype-dev && \
docker-php-ext-install soap gd pdo_mysql opcache

Expand All @@ -12,8 +12,6 @@ COPY ./conf/xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
RUN apk --update --no-cache add git npm yarn autoconf g++ make && \
docker-php-ext-install exif && \
pecl install -f xdebug && \
pecl install -f apcu && \
pecl install -f apcu_bc && \
docker-php-ext-enable xdebug apcu apc && \
docker-php-ext-enable xdebug && \
apk del --purge autoconf g++ make
CMD ["/usr/local/sbin/php-fpm" , "-F"]

0 comments on commit 915b6a4

Please sign in to comment.