Skip to content

Remove composer.lock composer.json and vendor from nginx image #485

@acbramley

Description

@acbramley

The nginx image currently contains composer files and a vendor directory. This should not be part of the nginx image.

This leads the lagoon dashboard reporting multiple versions of Drupal/Drush running on production environments.

These files do not exist in the lagoon base image.

❯ docker run -it govcms/nginx-drupal:10.x-latest sh
Setting up Healthz routing
nginx:/app$ ls -la
total 944
drwxr-xr-x    1 root     root          4096 Aug  4 19:53 .
drwxr-xr-x    1 root     root          4096 Aug  6 05:27 ..
-rw-r--r--    1 root     root           357 Aug  4 19:45 .editorconfig
-rw-r--r--    1 root     root          4222 Aug  4 19:45 .gitattributes
-rw-rw-rw-    1 root     root          3015 Aug  4 19:44 composer.json
-rw-r--r--    1 root     root        911663 Aug  4 19:45 composer.lock
drwxr-xr-x    3 root     root          4096 Aug  4 19:44 custom
drwxr-xr-x    3 root     root          4096 Aug  4 19:45 drush
drwxr-xr-x    3 root     root          4096 Aug  4 19:44 scripts
drwxr-xr-x    4 root     root          4096 Aug  4 19:44 simplesaml
drwxr-xr-x   58 root     root          4096 Aug  4 19:45 vendor
drwxr-xr-x    1 root     root          4096 Aug  6 05:27 web

Metadata

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