From 4dcb305a95859ea8d6f4db4135077a7518ef4f2d Mon Sep 17 00:00:00 2001 From: pooneyy <85266337+pooneyy@users.noreply.github.com> Date: Fri, 3 Oct 2025 20:21:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20build(mcy-shop):=20add=20dockerf?= =?UTF-8?q?ile=20for=20php=20application?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - create new dockerfile based on php:8-apache-bookworm - install required system dependencies (git, image libraries, zip) - configure and install php extensions (gd, pdo_mysql, zip) - clone mcy-shop repository and checkout specified ref - clean up git files and set proper permissions - enable apache rewrite module for url routing --- apps/mcy-shop/Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 apps/mcy-shop/Dockerfile diff --git a/apps/mcy-shop/Dockerfile b/apps/mcy-shop/Dockerfile new file mode 100644 index 000000000..45ce3a734 --- /dev/null +++ b/apps/mcy-shop/Dockerfile @@ -0,0 +1,21 @@ +From php:8-apache-bookworm +ARG REF main +RUN apt-get update && apt-get install -y \ + git \ + libfreetype6-dev \ + libjpeg-dev \ + libpng-dev \ + libwebp-dev \ + libzip-dev && \ + docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg --with-webp && \ + docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd && \ + docker-php-ext-configure zip && \ + docker-php-ext-install gd pdo_mysql zip && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* && \ + git config --global --add safe.directory /var/www/html && \ + git clone https://github.com/lizhipay/mcy-shop . && \ + git checkout $REF && \ + rm -rf .git && \ + chmod -R 777 ./* && \ + a2enmod rewrite