Iām having the same issue
trying to create an fpm-alpine docker image
have the following so far in my Dockerfile
FROM php:8.0-fpm-alpine
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
RUN apk add --no-cache zlib-dev libpng-dev imap-dev libzip-dev icu-dev \
&& docker-php-ext-install gd imap zip intl \
&& wget -qO- https://github.com/salesagility/SuiteCRM/archive/v${SUITECRM_VERSION:-7.11.22}.zip \
| unzip -d /var/www/ -
RUN for x in \
/var/www/SuiteCRM-${SUITECRM_VERSION:-7.11.22}/* \
/var/www/SuiteCRM-${SUITECRM_VERSION:-7.11.22}/.[!.]* \
/var/www/SuiteCRM-${SUITECRM_VERSION:-7.11.22}/..?*; \
do if [ -e "$x" ]; then mv -- "$x" /var/www/html; fi done \
&& chown -R www-data:www-data /var/www/html \
&& rm -rf /var/www/SuiteCRM-${SUITECRM_VERSION:-7.11.22}
WORKDIR /var/www/html
when jumping into the container using the sh shell and trying to run
php -r "\$_SERVER['HTTP_HOST'] = 'localhost'; \$_SERVER['REQUEST_URI'] = 'install.php';\$_REQUEST = array('goto' => 'SilentInstall', 'cli' => true);require_once 'install.php';";
which can be found here which was linked here
I get the following message
Composer autoloader not found. please run "composer install"
when running composer install
it complains that there is an issue with the version for composer-plugin-api and that you should try running composer update but this also fails.
is this all because I am trying to install from the packages at github?
I was thinking of fetching suitecrm from the website but the github links are the easiest to use (just need to change the version number)