fix: 📌 pin PHP version to that used by actual servers

This commit is contained in:
David Bailey 2025-01-06 22:32:23 +01:00
parent 9de4838081
commit cd5b6f2942

View file

@ -4,7 +4,7 @@ WORKDIR /app
COPY www/composer.* .
COPY www/vendor/* vendor/
FROM php:apache
FROM php:8.2-apache
WORKDIR /var/www/html
COPY --from=0 /app/ ./
@ -15,6 +15,7 @@ RUN a2enmod headers
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
RUN mkdir raw
RUN chmod a+wr raw
COPY www/ .
RUN chmod -R a+rw $(ls -I vendor)
RUN chmod -R a+rw $(ls -I vendor)