feat: 添加了 tzdata 和 logrotate 到项目里
Some checks failed
Build and Push Docker Image to Aliyun Registry / build-and-push (push) Has been cancelled

Signed-off-by: Caijinglong <cjl_spy@163.com>
This commit is contained in:
Caijinglong 2025-07-11 17:07:03 +08:00
parent ec6f94abf8
commit 8a4b147c2b
Signed by: cai
GPG Key ID: 92FBD82121AC80AA
2 changed files with 7 additions and 1 deletions

View File

@ -87,6 +87,12 @@ RUN pecl install redis && docker-php-ext-enable redis
# 安装 tzdate
RUN apk add --no-cache tzdata
RUN apk update && apk add logrotate
# 设置时区
ENV TZ=Asia/Shanghai
RUN ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# 创建必要的目录
RUN mkdir -p /var/www/html \
/var/log/nginx \

View File

@ -1,3 +1,3 @@
VERSION="0.1.4"
VERSION="0.1.5"
docker buildx build --platform linux/amd64 -t common-nginx-fpm:$VERSION --load .
docker tag common-nginx-fpm:$VERSION common-nginx-fpm:latest