Skip to content
New issue

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

The "--audit" option does not exist. #38

Closed
rodurma opened this issue Mar 24, 2023 · 3 comments
Closed

The "--audit" option does not exist. #38

rodurma opened this issue Mar 24, 2023 · 3 comments

Comments

@rodurma
Copy link

rodurma commented Mar 24, 2023

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.

@smortexa
Copy link
Member

Make sure you are using the recent versions of Composer (2.4+).

@rodurma
Copy link
Author

rodurma commented Mar 27, 2023

Hi @smortexa,

Composer is run from FROM composer:${COMPOSER_VERSION} AS vendor, right?

Or I need the last version on host?

@smortexa
Copy link
Member

Yes, you can try to build Docker image with --no-cache flag.

@rodurma rodurma closed this as completed Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants