From ac0af5636d4da379322e8ba86e2aa303bd937ff4 Mon Sep 17 00:00:00 2001 From: Caijinglong Date: Fri, 4 Jul 2025 08:49:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Add=20timezone=20data=20and=20update=20?= =?UTF-8?q?version=20(=E5=A2=9E=E5=8A=A0=E4=BA=86=E6=97=B6=E5=8C=BA?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=B9=B6=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Install `tzdata` in Dockerfile (在 `Dockerfile` 中安装 `tzdata` 以支持时区) - Update version from 0.1.2 to 0.1.3 in `build.sh` (在 `build.sh` 中将版本从 0.1.2 更新到 0.1.3) --- Dockerfile | 3 +++ build.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f3b5496..d2bdaf5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -84,6 +84,9 @@ RUN docker-php-ext-configure ldap --with-libdir=lib/ && \ RUN apk add --no-cache make RUN pecl install redis && docker-php-ext-enable redis +# 安装 tzdate +RUN apk add --no-cache tzdata + # 创建必要的目录 RUN mkdir -p /var/www/html \ /var/log/nginx \ diff --git a/build.sh b/build.sh index c029f76..96a73c4 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,3 @@ -VERSION="0.1.2" -docker buildx build --platform linux/amd64 -t common-nginx-fpm:$VERSION . +VERSION="0.1.3" +docker buildx build --platform linux/amd64 -t common-nginx-fpm:$VERSION --load . docker tag common-nginx-fpm:$VERSION common-nginx-fpm:latest