diff --git a/.gitignore b/.gitignore index 451fb35..af28d7a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .env -.idea \ No newline at end of file +.idea +/www \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 80f1282..ad73115 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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