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 dfd6ad9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- 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 dfd6ad9

Please sign in to comment.