composer / docker

Composer in Docker
https://hub.docker.com/_/composer/
MIT License
274 stars 133 forks source link

Documentation incorrect for multi-stage builds #290

Closed benfreke closed 1 year ago

benfreke commented 1 year ago

Hi

https://hub.docker.com/r/composer/composer is incorrect. It states that a multistage build command for the bin images should look like this:

COPY --from=composer/composer /usr/bin/composer /usr/bin/composer

It should instead look like this:

COPY --from=composer/composer /composer /usr/bin/composer

I don't believe that the instructions are a file in this repo or I would have submitted a PR for it.

I'm sure I'm not the only one who would have missed this. You can see the correct path in Docker Hub here: https://hub.docker.com/layers/composer/composer/latest-bin/images/sha256-a6a518709735610ef3ca249db8b8941e185fad472a3ec06eaab6038e185ab43f?context=explore

I believe this may be due to the original copy of the "official" composer image, where /usr/bin/composer is the correct path.

alcohol commented 1 year ago

You are correct. I have updated the documentation of the community image (through Docker hub).