Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
5 changes: 3 additions & 2 deletions docker/php-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM php:7.2-fpm-alpine AS fpmprod
FROM php:8.1-fpm-alpine AS fpmprod
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN apk add --no-cache libxml2-dev freetype-dev && \
docker-php-ext-install soap gd pdo_mysql opcache

Expand All @@ -7,7 +8,7 @@ COPY ./conf/10-docker-opcache-openconext.conf /usr/local/etc/php/conf.d/
CMD ["/usr/local/sbin/php-fpm" , "-F"]

FROM fpmprod AS fpmdev
COPY --from=composer:1 /usr/bin/composer /usr/bin/composer
COPY --from=composer /usr/bin/composer /usr/bin/composer
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 && \
Expand Down