feat: 添加了 tzdata 和 logrotate 到项目里
Some checks failed
Build and Push Docker Image to Aliyun Registry / build-and-push (push) Has been cancelled
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:
parent
ec6f94abf8
commit
8a4b147c2b
@ -87,6 +87,12 @@ RUN pecl install redis && docker-php-ext-enable redis
|
|||||||
# 安装 tzdate
|
# 安装 tzdate
|
||||||
RUN apk add --no-cache tzdata
|
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 \
|
RUN mkdir -p /var/www/html \
|
||||||
/var/log/nginx \
|
/var/log/nginx \
|
||||||
|
|||||||
2
build.sh
2
build.sh
@ -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 buildx build --platform linux/amd64 -t common-nginx-fpm:$VERSION --load .
|
||||||
docker tag common-nginx-fpm:$VERSION common-nginx-fpm:latest
|
docker tag common-nginx-fpm:$VERSION common-nginx-fpm:latest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user