docker: cache composer dependencies

This commit is contained in:
Zankaria 2024-08-17 18:41:46 +02:00
parent ee2ddeb29d
commit a6040e704b

View file

@ -83,7 +83,7 @@ COPY --from=composer /usr/bin/composer /usr/local/bin/composer
COPY . /code
# Install the compose depedencies.
RUN cd /code && composer install
RUN --mount=type=cache,target=/tmp/cache cd /code && composer install
WORKDIR "/var/www"
CMD [ "bootstrap.sh" ]