From 137d76f2b0f6c77152191e0b900d21cefc126290 Mon Sep 17 00:00:00 2001 From: "allen.yan" Date: Wed, 28 May 2025 14:44:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=AC=E8=A9=A6=20docker=20=20=E8=AA=BF?= =?UTF-8?q?=E6=95=B4=2020250528?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d9c74dc..8220241 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,35 @@ FROM php:8.3-fpm # 安裝系統套件與 PHP 擴充 RUN apt-get update && apt-get install -y \ - git unzip curl libzip-dev zip libpng-dev libonig-dev cron supervisor \ - && docker-php-ext-install pdo pdo_mysql zip + git \ + unzip \ + zip \ + curl \ + libpng-dev \ + libjpeg62-turbo-dev \ + libfreetype6-dev \ + libonig-dev \ + libxml2-dev \ + libzip-dev \ + libpq-dev \ + libicu-dev \ + libxslt-dev \ + libsqlite3-dev \ + sqlite3 \ + cron \ + supervisor \ + nodejs \ + npm \ + && docker-php-ext-configure gd --with-freetype --with-jpeg \ + && docker-php-ext-install \ + gd \ + pdo_mysql \ + zip \ + bcmath \ + intl \ + xsl \ + pcntl \ + sockets # 安裝 Composer COPY --from=composer:latest /usr/bin/composer /usr/bin/composer