Skip to content

RUN "composer install" Does break docker build. #23

Open
@dedfft

Description

Thank you for your reply. I tried this multiple times. I get this error every time.
Strictly followed instructions

=> ERROR [5/6] RUN composer install --no-interaction --no-scripts --no-suggest                                                         0.5s
------
> [5/6] RUN composer install --no-interaction --no-scripts --no-suggest:
0.498 Composer plugins have been disabled for safety in this non-interactive session.
0.498 Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
0.498 Do not run Composer as root/super user! See https://getcomposer.org/root for details
0.509 You are using the deprecated option "--no-suggest". It has no effect and will break in Composer 3.
0.509 Composer could not find a composer.json file in /
0.509 To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
------
Dockerfile:6
--------------------
   4 |     COPY ./dockerizer/vhost.conf /opt/docker/etc/nginx/vhost.conf
   5 |     COPY composer.json composer.lock /app/
   6 | >>> RUN composer install --no-interaction --no-scripts --no-suggest
   7 |     COPY . /app
   8 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c composer install --no-interaction --no-scripts --no-suggest" did not complete successfully: exit code: 1

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions