Add writable .composer directory for Composer cache.

This commit ensures a writable .composer directory is created with appropriate permissions. This change resolves potential permission issues when using Composer inside the container.
This commit is contained in:
Leonid Nikitin 2024-12-10 22:22:50 +05:00
parent d36507b180
commit b729d057a9
Signed by: kor-elf
GPG Key ID: 3C0F720C170F6E1D

View File

@ -110,6 +110,7 @@ WORKDIR /var/www/html
STOPSIGNAL SIGTERM
RUN apk --no-cache add git \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN mkdir "/.composer" && chmod -R 0777 "/.composer"
ENTRYPOINT ["composer"]