fix composer package

This commit is contained in:
Mohamed Youssef
2026-03-22 11:15:56 +02:00
parent b8252e73b0
commit 66ae823cf1
2 changed files with 6 additions and 5 deletions
+4 -4
View File
@@ -18,6 +18,10 @@ RUN install-php-extensions \
tokenizer \
simplexml
# Install Composer
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
RUN chmod +x /usr/bin/composer
# -------------------------
# Node.js layer
# -------------------------
@@ -72,10 +76,6 @@ FROM base AS opencart
RUN install-php-extensions \
mysqli
# Install Composer
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
# Fix permissions for storage & cache (FrankenPHP runs as UID 65534 = nobody)
RUN if [ -d /app/storage ]; then chown -R 65534:65534 /app/storage /app/bootstrap/cache; fi