Composer is now in /var/cache/composer

This commit is contained in:
Deon George 2023-02-05 13:11:52 +11:00
parent c315f208d4
commit d9279d0a54

View File

@ -2,10 +2,10 @@ FROM registry.dege.au/leenooks/php:8.1-fpm-alpine
COPY . /var/www/html/ COPY . /var/www/html/
RUN mkdir /var/www/.composer && \ RUN mkdir /var/cache/composer && \
([ -r auth.json ] && mv auth.json /var/www/.composer/) || true && \ ([ -r auth.json ] && mv auth.json /var/cache/composer/) || true && \
touch .composer.refresh && \ touch .composer.refresh && \
mv .env.example .env && \ mv .env.example .env && \
FORCE_PERMS=1 /sbin/init && \ FORCE_PERMS=1 /sbin/init && \
rm -rf /var/www/.composer/* && \ rm -rf /var/cache/composer/* && \
touch .migrate && chmod g+w database touch .migrate && chmod g+w database