perf(docker): use install-php-extensions for instant 15s build and switch to rock-solid mysql:8.0

This commit is contained in:
Hamza-Ayed
2026-08-26 16:27:41 +03:00
parent 8c9f31382b
commit d02c9a4092
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ services:
- app
db:
image: mysql:8.4
image: mysql:8.0
container_name: saqel_mysql
restart: unless-stopped
environment:
+3 -3
View File
@@ -1,8 +1,8 @@
FROM php:8.4-fpm-alpine
RUN apk add --no-cache nginx icu-dev libzip-dev zip oniguruma-dev libpng-dev freetype-dev libjpeg-turbo-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install pdo_mysql bcmath intl zip gd opcache pcntl
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN install-php-extensions pdo_mysql bcmath intl zip gd opcache pcntl
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer