Skip to content
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ jobs:
- { tag: '3.x', php: '8.3', distro: bookworm, version-override: "v3-dev", latest-tag: false }
- { tag: 'v4.0', php: '8.4', distro: bookworm, version-override: "", latest-tag: true }
- { tag: '4.x', php: '8.4', distro: bookworm, version-override: "v4-dev", latest-tag: false }

- { tag: '5.x', php: '8.5', distro: trixie, version-override: "", latest-tag: false }
# - { tag: 'v5.0', php: '8.5', distro: trixie, version-override: "", latest-tag: false }
# - { tag: '5.x', php: '8.5', distro: trixie, version-override: "v5-dev", latest-tag: false }

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
include:
- { php: '8.3', distro: bookworm }
- { php: '8.4', distro: bookworm }
- { php: '8.5', distro: trixie, composerOptions: '--ignore-platform-reqs' }

steps:
- uses: actions/checkout@v2
- name: Build Image
Expand Down Expand Up @@ -49,7 +51,7 @@ jobs:
docker run --rm pimcore-image test ! -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
fi

docker run --rm pimcore-image composer create-project pimcore/skeleton:2025.x-dev pimcore --no-scripts
docker run --rm pimcore-image composer create-project pimcore/skeleton:2025.x-dev pimcore --no-scripts ${{ matrix.composerOptions }}

if [ "$imageVariant" != "min" ]; then
docker run -v "$(pwd)/.github/files":/var/www/html --rm pimcore-image php test_heif.php
Expand Down
28 changes: 9 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# syntax=docker/dockerfile:1

ARG PHP_VERSION="8.4"
ARG DEBIAN_VERSION="bookworm"
ARG PHP_VERSION="8.5"
ARG DEBIAN_VERSION="trixie"

FROM php:${PHP_VERSION}-fpm-${DEBIAN_VERSION} AS pimcore_php_min

ARG DEBIAN_VERSION

COPY --chmod=0755 files/build-*.sh /usr/local/bin/

RUN set -eux; \
\
DPKG_ARCH="$(dpkg --print-architecture)"; \
echo "deb http://deb.debian.org/debian bookworm-backports main" > /etc/apt/sources.list.d/backports.list; \
echo "deb http://deb.debian.org/debian ${DEBIAN_VERSION}-backports main" > /etc/apt/sources.list.d/backports.list; \
apt-get update; \
apt-get upgrade -y; \
\
Expand All @@ -37,7 +39,6 @@ RUN set -eux; \
exif \
gd \
intl \
opcache \
pcntl \
pdo_mysql \
sockets \
Expand Down Expand Up @@ -94,19 +95,15 @@ WORKDIR /var/www/html

CMD ["php-fpm"]




FROM pimcore_php_min AS pimcore_php_default

ARG DEBIAN_VERSION

RUN set -eux; \
\
build-install.sh; \
\
DPKG_ARCH="$(dpkg --print-architecture)"; \
echo "deb https://www.deb-multimedia.org bookworm main non-free" > /etc/apt/sources.list.d/deb-multimedia.list; \
apt-get update -oAcquire::AllowInsecureRepositories=true; \
apt-get install -y --allow-unauthenticated deb-multimedia-keyring; \
apt-get update; \
\
# tools used by Pimcore
Expand All @@ -133,8 +130,8 @@ RUN set -eux; \
\
# ImageMagick
apt-get install -y \
imagemagick-7 \
libmagickwand-7-dev \
imagemagick \
libmagickwand-dev \
; \
\
docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg --with-webp; \
Expand All @@ -159,9 +156,6 @@ RUN set -eux; \

CMD ["php-fpm"]




FROM pimcore_php_default AS pimcore_php_max

RUN set -eux; \
Expand All @@ -170,7 +164,6 @@ RUN set -eux; \
\
apt-get install -y \
chromium-sandbox \
libc-client-dev \
libkrb5-dev \
libreoffice \
libxml2-dev \
Expand All @@ -190,9 +183,6 @@ RUN set -eux; \

CMD ["php-fpm"]




FROM pimcore_php_default AS pimcore_php_debug

RUN set -eux; \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Use either of the following commands:
| v3 | ❌ | ✅* | ✅* | ✅* | ✅ |
| v4 | ❌ | ❌ | ❌ | ❌ | ✅* |


> *) recommended version

## Examples
Expand Down