perf(docker): use install-php-extensions for instant 15s build and switch to rock-solid mysql:8.0
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ services:
|
|||||||
- app
|
- app
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mysql:8.4
|
image: mysql:8.0
|
||||||
container_name: saqel_mysql
|
container_name: saqel_mysql
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
FROM php:8.4-fpm-alpine
|
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 \
|
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
||||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
|
||||||
&& docker-php-ext-install pdo_mysql bcmath intl zip gd opcache pcntl
|
RUN install-php-extensions pdo_mysql bcmath intl zip gd opcache pcntl
|
||||||
|
|
||||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user