In my understanding, the composer in the DOCKERFILE generates the vendor folder, which is excluded from git with the .gitignore.
The release zip on the other hand already includes this folder.
So my question is if
FROM composer as composer
COPY composer.json composer.lock ./
RUN composer install --ignore-platform-reqs --no-dev
Yes it can be removed if you want to use it from the release package. The
release package is intended for people not using Docker (e.g. people using
Jorani from a shared hosting
In my understanding, the composer in the
DOCKERFILE
generates the vendor folder, which is excluded from git with the.gitignore
. The release zip on the other hand already includes this folder.So my question is if
and
can be removed from the release Dockerfile without breaking anything.