Refactor Shopware role: separate Shopware app version and PHP runtime, update Dockerfile to use dynamic images, consolidate pull_policy, and improve image configuration. See conversation: https://chatgpt.com/share/6926d2f2-083c-800f-916a-7c260d1eada8

This commit is contained in:
2025-11-26 11:14:29 +01:00
parent 9c65bd4839
commit f8899e9493
4 changed files with 13 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ ENV COMPOSER_ALLOW_SUPERUSER=1 \
COMPOSER_PROCESS_TIMEOUT=900
WORKDIR /app
ARG SHOPWARE_PROD_VERSION=shopware/production:6.7.3.1
ARG SHOPWARE_PROD_VERSION="{{ SHOPWARE_IMAGE }}:{{ SHOPWARE_VERSION }}"
# 1) Scaffold project without installing dependencies
RUN set -eux; \
@@ -45,7 +45,7 @@ RUN set -eux; \
############################
# Stage 2: Runtime
############################
FROM ghcr.io/shopware/docker-base:8.3
FROM {{ SHOPWARE_PHP_IMAGE }}:{{ SHOPWARE_PHP_VERSION }}
WORKDIR /var/www/html
# Install required PHP extensions in the Alpine-based runtime