1 Star 0 Fork 380

iy-fish / MineAdmin

forked from MineAdmin / MineAdmin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
青衣煮茶 提交于 2022-03-30 15:51 . dev
# Default Dockerfile
FROM hyperf/hyperf:8.0-alpine-v3.15-swoole
LABEL maintainer="MineManage Developers <root@imoi.cn>" version="1.0" license="MIT" app.name="MineManage"
##
# ---------- env settings ----------
##
# --build-arg timezone=Asia/Shanghai
ARG timezone
ENV TIMEZONE=${timezone:-"Asia/Shanghai"} \
# APP_ENV=dev \
APP_SYSTEM_ENV=docker \
SCAN_CACHEABLE=(true)
# update
RUN set -ex \
# 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"; \
echo "date.timezone=${TIMEZONE}"; \
} | tee conf.d/99_overrides.ini \
# - config timezone
&& ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \
&& echo "${TIMEZONE}" > /etc/timezone \
# ---------- clear works ----------
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
&& echo -e "\033[42;37m Build Completed :).\033[0m\n"
RUN apk update \
&& apk add --no-cache php8-pear php8-dev zlib-dev re2c gcc g++ make \
&& curl -fsSL "https://pecl.php.net/get/xlswriter-1.5.1.tgz" -o xlswriter.tgz \
&& mkdir -p /tmp/xlswriter \
&& tar -xf xlswriter.tgz -C /tmp/xlswriter --strip-components=1 \
&& rm xlswriter.tgz \
&& ln -s /usr/bin/phpize8 /usr/local/bin/phpize \
&& ln -s /usr/bin/php-config8 /usr/local/bin/php-config \
&& cd /tmp/xlswriter \
&& phpize && ./configure --enable-reader && make && make install
RUN echo "extension=xlswriter.so" >> /etc/php8/conf.d/xlswriter.ini
WORKDIR /opt/www
EXPOSE 9501 9502 9503
PHP
1
https://gitee.com/iyfish/MineAdmin.git
git@gitee.com:iyfish/MineAdmin.git
iyfish
MineAdmin
MineAdmin
master

搜索帮助