ci: 更新 Docker 镜像并添加新版本

- 更新 Jenkinsfile,添加 8.4-swoole 版本构建和推送
- 修改 Latest 版本指向 8.4-swoole
- 更新各版本 Dockerfile,设置时区为 America/Los_Angeles
- 新增 8.4 版本 Dockerfile
This commit is contained in:
李东云
2025-06-17 17:02:56 +08:00
parent ed89cea778
commit 75c068ff29
6 changed files with 58 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ LABEL maintainer="李东云 <dongyun.li@luxcreo.ai>" version="1.0" license="MIT"
# ---------- env settings ----------
##
# --build-arg timezone=Asia/Shanghai
ENV TIMEZONE=Asia/Shanghai \
ENV TIMEZONE=America/Los_Angeles \
SCAN_CACHEABLE=(true) \
COMPOSER_ALLOW_SUPERUSER=1
@@ -29,6 +29,7 @@ RUN set -ex \
echo "upload_max_filesize=128M"; \
echo "post_max_size=128M"; \
echo "memory_limit=1G"; \
echo "date.timezone=${TIMEZONE}"; \
} | tee conf.d/99_overrides.ini \
# ---------- clear works ----------
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \

View File

@@ -10,7 +10,7 @@ LABEL maintainer="李东云 <dongyun.li@luxcreo.ai>" version="1.0" license="MIT"
# ---------- env settings ----------
##
# --build-arg timezone=Asia/Shanghai
ENV TIMEZONE=Asia/Shanghai \
ENV TIMEZONE=America/Los_Angeles \
SCAN_CACHEABLE=(true) \
COMPOSER_ALLOW_SUPERUSER=1
@@ -29,6 +29,7 @@ RUN set -ex \
echo "upload_max_filesize=128M"; \
echo "post_max_size=128M"; \
echo "memory_limit=1G"; \
echo "date.timezone=${TIMEZONE}"; \
} | tee conf.d/99_overrides.ini \
# ---------- clear works ----------
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \

View File

@@ -10,7 +10,7 @@ LABEL maintainer="李东云 <dongyun.li@luxcreo.ai>" version="1.0" license="MIT"
# ---------- env settings ----------
##
# --build-arg timezone=Asia/Shanghai
ENV TIMEZONE=Asia/Shanghai \
ENV TIMEZONE=America/Los_Angeles \
SCAN_CACHEABLE=(true) \
COMPOSER_ALLOW_SUPERUSER=1
@@ -29,6 +29,7 @@ RUN set -ex \
echo "upload_max_filesize=128M"; \
echo "post_max_size=128M"; \
echo "memory_limit=1G"; \
echo "date.timezone=${TIMEZONE}"; \
} | tee conf.d/99_overrides.ini \
# ---------- clear works ----------
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \

View File

@@ -3,14 +3,14 @@
# @link https://studio.luxcreo.cn/
# @contact dongyun.li@luxcreo.cn
FROM hyperf/hyperf:8.3-alpine-vedge-swoole
FROM hyperf/hyperf:8.3-alpine-vedge-swoole-slim
LABEL maintainer="李东云 <dongyun.li@luxcreo.ai>" version="1.0" license="MIT" app.name="LuxHyperf"
##
# ---------- env settings ----------
##
# --build-arg timezone=Asia/Shanghai
ENV TIMEZONE=Asia/Shanghai \
ENV TIMEZONE=America/Los_Angeles \
SCAN_CACHEABLE=(true) \
COMPOSER_ALLOW_SUPERUSER=1
@@ -29,6 +29,7 @@ RUN set -ex \
echo "upload_max_filesize=128M"; \
echo "post_max_size=128M"; \
echo "memory_limit=1G"; \
echo "date.timezone=${TIMEZONE}"; \
} | tee conf.d/99_overrides.ini \
# ---------- clear works ----------
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \

42
swoole/8.4/Dockerfile Normal file
View File

@@ -0,0 +1,42 @@
# Default Dockerfile
#
# @link https://studio.luxcreo.cn/
# @contact dongyun.li@luxcreo.cn
FROM hyperf/hyperf:8.4-alpine-vedge-swoole-slim
LABEL maintainer="李东云 <dongyun.li@luxcreo.ai>" version="1.0" license="MIT" app.name="LuxHyperf"
##
# ---------- env settings ----------
##
# --build-arg timezone=Asia/Shanghai
ENV TIMEZONE=America/Los_Angeles \
SCAN_CACHEABLE=(true) \
COMPOSER_ALLOW_SUPERUSER=1
# update
RUN set -ex \
&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
# show php version and extensions
&& php -v \
&& php -m \
&& php --ri swoole \
&& apk add --no-cache --repository http://mirrors.aliyun.com/alpine/edge/community gnu-libiconv \
# ---------- some config ----------
&& cd /etc/php84 \
# - config PHP
&& { \
echo "upload_max_filesize=128M"; \
echo "post_max_size=128M"; \
echo "memory_limit=1G"; \
echo "date.timezone"; \
} | tee conf.d/99_overrides.ini \
# ---------- clear works ----------
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
&& echo -e "\033[42;37m Build Completed :).\033[0m\n"
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
WORKDIR /srv/www
EXPOSE 9501