feat: 增加 8.2 镜像

This commit is contained in:
李东云
2023-07-03 11:04:59 +08:00
parent 6fb2e43c1e
commit ad36100507
4 changed files with 12 additions and 12 deletions

37
swoole/8.2/Dockerfile Normal file
View File

@@ -0,0 +1,37 @@
# Default Dockerfile
#
# @link https://studio.luxcreo.cn/
# @contact dongyun.li@luxcreo.cn
FROM hyperf/hyperf:8.2-alpine-v3.18-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/php81 \
# - 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