We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, when I build docker image I received this error message:
docker build -t app:1.0.15 .
=> ERROR [vendor 4/5] RUN composer install --no-dev --no-interaction --prefer-dist --ignore-platform-reqs --optimize-autoloader --apcu-autoloader -- 1.6s => CANCELED [stage-1 4/35] RUN apt-get update; apt-get upgrade -yqq; pecl -q channel-update pecl.php.net; apt-get install -yqq --no-install-recommend 1.2s ------ > [vendor 4/5] RUN composer install --no-dev --no-interaction --prefer-dist --ignore-platform-reqs --optimize-autoloader --apcu-autoloader --ansi --no-scripts --audit: #0 1.574 #0 1.582 #0 1.582 The "--audit" option does not exist. #0 1.582 #0 1.583 #0 1.583 install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...] #0 1.583 ------ Dockerfile:17 -------------------- 16 | COPY composer* ./ 17 | >>> RUN composer install \ 18 | >>> --no-dev \ 19 | >>> --no-interaction \ 20 | >>> --prefer-dist \ 21 | >>> --ignore-platform-reqs \ 22 | >>> --optimize-autoloader \ 23 | >>> --apcu-autoloader \ 24 | >>> --ansi \ 25 | >>> --no-scripts \ 26 | >>> --audit 27 | -------------------- ERROR: failed to solve: process "/bin/sh -c composer install --no-dev --no-interaction --prefer-dist --ignore-platform-reqs --optimize-autoloader --apcu-autoloader --ansi --no-scripts --audit" did not complete successfully: exit code: 1
I tried with --no-cache flag but it doesn't work too.
--no-cache
The text was updated successfully, but these errors were encountered:
Make sure you are using the recent versions of Composer (2.4+).
Sorry, something went wrong.
Hi @smortexa,
Composer is run from FROM composer:${COMPOSER_VERSION} AS vendor, right?
FROM composer:${COMPOSER_VERSION} AS vendor
Or I need the last version on host?
Yes, you can try to build Docker image with --no-cache flag.
No branches or pull requests
Hi, when I build docker image I received this error message:
I tried with
--no-cache
flag but it doesn't work too.The text was updated successfully, but these errors were encountered: