From f1ed0bf0d85eecbfb30e8c121b30fc6fc482b994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=9C=E4=BA=91?= Date: Sat, 28 Jan 2023 16:20:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20=E5=A2=9E=E5=8A=A0PHP7-8.1?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- swoole/7.3/Dockerfile | 37 +++++++++++++++++++++++++++++++++++++ swoole/7.4/Dockerfile | 37 +++++++++++++++++++++++++++++++++++++ swoole/8.0/Dockerfile | 8 ++++---- swoole/8.1/Dockerfile | 37 +++++++++++++++++++++++++++++++++++++ 4 files changed, 115 insertions(+), 4 deletions(-) create mode 100644 swoole/7.3/Dockerfile create mode 100644 swoole/7.4/Dockerfile create mode 100644 swoole/8.1/Dockerfile diff --git a/swoole/7.3/Dockerfile b/swoole/7.3/Dockerfile new file mode 100644 index 0000000..8d5c3f7 --- /dev/null +++ b/swoole/7.3/Dockerfile @@ -0,0 +1,37 @@ +# Default Dockerfile +# +# @link https://studio.luxcreo.cn/ +# @contact dongyun.li@luxcreo.cn + +FROM hyperf/hyperf:7.3-alpine-v3.11-swoole +LABEL maintainer="李东云 " version="1.0" license="MIT" app.name="LuxHyperf" + +## +# ---------- env settings ---------- +## +# --build-arg timezone=Asia/Shanghai +ENV TIMEZONE=Asia/Shanghai \ + SCAN_CACHEABLE=(true) + +# 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 \ + # ---------- some config ---------- + && cd /etc/php7 \ + # - config PHP + && { \ + echo "upload_max_filesize=128M"; \ + echo "post_max_size=128M"; \ + echo "memory_limit=1G"; \ + } | 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" + +WORKDIR /srv/www + +EXPOSE 9501 \ No newline at end of file diff --git a/swoole/7.4/Dockerfile b/swoole/7.4/Dockerfile new file mode 100644 index 0000000..0a1134b --- /dev/null +++ b/swoole/7.4/Dockerfile @@ -0,0 +1,37 @@ +# Default Dockerfile +# +# @link https://studio.luxcreo.cn/ +# @contact dongyun.li@luxcreo.cn + +FROM hyperf/hyperf:7.4-alpine-v3.14-swoole +LABEL maintainer="李东云 " version="1.0" license="MIT" app.name="LuxHyperf" + +## +# ---------- env settings ---------- +## +# --build-arg timezone=Asia/Shanghai +ENV TIMEZONE=Asia/Shanghai \ + SCAN_CACHEABLE=(true) + +# 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 \ + # ---------- some config ---------- + && cd /etc/php7 \ + # - config PHP + && { \ + echo "upload_max_filesize=128M"; \ + echo "post_max_size=128M"; \ + echo "memory_limit=1G"; \ + } | 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" + +WORKDIR /srv/www + +EXPOSE 9501 \ No newline at end of file diff --git a/swoole/8.0/Dockerfile b/swoole/8.0/Dockerfile index 69de582..5c77f0c 100644 --- a/swoole/8.0/Dockerfile +++ b/swoole/8.0/Dockerfile @@ -3,7 +3,7 @@ # @link https://studio.luxcreo.cn/ # @contact dongyun.li@luxcreo.cn -FROM hyperf/hyperf:8.0-alpine-v3.14-swoole +FROM hyperf/hyperf:8.0-alpine-v3.16-swoole LABEL maintainer="李东云 " version="1.0" license="MIT" app.name="LuxHyperf" ## @@ -24,9 +24,9 @@ RUN set -ex \ && cd /etc/php8 \ # - config PHP && { \ - echo "upload_max_filesize=128M"; \ - echo "post_max_size=128M"; \ - echo "memory_limit=1G"; \ + echo "upload_max_filesize=128M"; \ + echo "post_max_size=128M"; \ + echo "memory_limit=1G"; \ } | tee conf.d/99_overrides.ini \ # ---------- clear works ---------- && rm -rf /var/cache/apk/* /tmp/* /usr/share/man \ diff --git a/swoole/8.1/Dockerfile b/swoole/8.1/Dockerfile new file mode 100644 index 0000000..66b557c --- /dev/null +++ b/swoole/8.1/Dockerfile @@ -0,0 +1,37 @@ +# Default Dockerfile +# +# @link https://studio.luxcreo.cn/ +# @contact dongyun.li@luxcreo.cn + +FROM hyperf/hyperf:8.1-alpine-v3.16-swoole +LABEL maintainer="李东云 " version="1.0" license="MIT" app.name="LuxHyperf" + +## +# ---------- env settings ---------- +## +# --build-arg timezone=Asia/Shanghai +ENV TIMEZONE=Asia/Shanghai \ + SCAN_CACHEABLE=(true) + +# 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 \ + # ---------- some config ---------- + && cd /etc/php8 \ + # - config PHP + && { \ + echo "upload_max_filesize=128M"; \ + echo "post_max_size=128M"; \ + echo "memory_limit=1G"; \ + } | 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" + +WORKDIR /srv/www + +EXPOSE 9501 \ No newline at end of file