From 2e4abca4550d0a8556872045a47b5c4303d23a66 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 23 Nov 2026 15:33:47 +0100 Subject: [PATCH] Build images with PHP 8.5 and Vite Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/release/build-image.yaml | 6 +++--- .gitea/workflows/release/update-composer-lock.yaml | 2 +- Dockerfile | 5 +---- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/release/build-image.yaml b/.gitea/workflows/release/build-image.yaml index 7f99db4..e81b2bb 100644 --- a/.gitea/workflows/release/build-image.yaml +++ b/.gitea/workflows/release/build-image.yaml @@ -19,13 +19,13 @@ jobs: password: ${{ secrets.OVH_REGISTRY_PASSWORD }} - name: Install Dependencies and Build Assets - uses: docker://chill/base-image:8.4-edge + uses: docker://chill/base-image:8.5-edge env: APP_ENV: prod with: entrypoint: /bin/sh - # We install node/yarn inside the PHP container to ensure translations are available - args: -c "apk add --no-cache nodejs yarn && composer install --no-scripts --no-interaction && bin/console cache:clear && yarn install && yarn run encore production" + # We install node/npm inside the PHP container: the Vite build needs the translations dumped by cache:warmup + args: -c "apk add --no-cache nodejs npm && composer install --no-scripts --no-interaction && bin/console cache:warmup && npm ci && npm run build" - name: Set up Docker Buildx uses: https://github.com/docker/setup-buildx-action@v3 diff --git a/.gitea/workflows/release/update-composer-lock.yaml b/.gitea/workflows/release/update-composer-lock.yaml index c5ea7b8..583bd0e 100644 --- a/.gitea/workflows/release/update-composer-lock.yaml +++ b/.gitea/workflows/release/update-composer-lock.yaml @@ -19,7 +19,7 @@ jobs: with: cmd: 'cat composer.lock | jq --raw-output ''.packages[] | select ( .name | contains ("chill-project/chill-bundles")) | .version''' - name: run composer update to update composer.lock - uses: docker://gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:latest + uses: docker://chill/base-image:8.5-edge with: # this is where we set the command to execute args: composer update --no-install diff --git a/Dockerfile b/Dockerfile index 3ce24f8..44e8b56 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM chill/base-image:8.4-edge +FROM chill/base-image:8.5-edge # copy directories with ownership for the unprivileged runtime user COPY --chown=www-data:www-data ./bin /var/www/app/bin/. @@ -13,9 +13,6 @@ COPY --chown=www-data:www-data ./vendor /var/www/app/vendor/. COPY --chown=www-data:www-data ./.env /var/www/app/.env -# import the manifest.json file -COPY --chown=www-data:www-data ./public/build/manifest.json /var/www/app/public/build/manifest.json - COPY ./entrypoint.sh /entrypoint.sh # - mark entrypoint executable