Ensure our composer cache dir is owned by SITE_USER
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 3m7s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 16m44s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
Create Docker Image / Build Docker Test Image (x86_64) (push) Successful in 39s
Create Docker Image / Final Docker Test Image Manifest (push) Successful in 9s

This commit is contained in:
Deon George 2025-02-16 20:11:17 +11:00
parent aeb3c72c04
commit 7ad82451cb

View File

@ -33,8 +33,9 @@ RUN sed -i -e 's#^;sendmail_path =#sendmail_path = "/usr/bin/msmtp -t"#' /usr/lo
COPY wait-for-it /usr/local/bin/
# Add composer
RUN curl -4 https://getcomposer.org/installer|php -- --install-dir=/usr/local/bin --filename=composer
ENV COMPOSER_HOME=/var/cache/composer
RUN curl -4 https://getcomposer.org/installer|php -- --install-dir=/usr/local/bin --filename=composer \
&& chown ${SITE_USER}:0 ${COMPOSER_HOME}
# Other config
COPY msmtprc /etc/