mirror of
http://124.126.16.154:8888/singularity/docker-images-hyperf.git
synced 2026-01-15 00:35:08 +08:00
feat: ✨ 增加PHP7-8.1版本
This commit is contained in:
37
swoole/7.3/Dockerfile
Normal file
37
swoole/7.3/Dockerfile
Normal file
@@ -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="李东云 <dongyun.li@luxcreo.ai>" 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
|
||||
37
swoole/7.4/Dockerfile
Normal file
37
swoole/7.4/Dockerfile
Normal file
@@ -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="李东云 <dongyun.li@luxcreo.ai>" 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
|
||||
@@ -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="李东云 <dongyun.li@luxcreo.ai>" version="1.0" license="MIT" app.name="LuxHyperf"
|
||||
|
||||
##
|
||||
|
||||
37
swoole/8.1/Dockerfile
Normal file
37
swoole/8.1/Dockerfile
Normal file
@@ -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="李东云 <dongyun.li@luxcreo.ai>" 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
|
||||
Reference in New Issue
Block a user