1 Star 0 Fork 0

homqyy/Hengine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 990 Bytes
一键复制 编辑 原始数据 按行查看 历史
homqyy 提交于 2022-10-30 23:15 +08:00 . 支持Docker编译; 格式化代码
FROM homqyy/dev_env_centos8 as compile
RUN yum install -y pcre-devel openssl-devel
WORKDIR /usr/src/hengine
COPY . .
RUN bash ./configure \
--prefix=/usr/local/hengine \
--with-http_ssl_module \
--with-http_sub_module \
--with-stream_ssl_module \
--with-stream \
--add-module=./modules/ngx_http_proxy_connect_module \
&& make && make install
LABEL cn.homqyy.docker.title="hengine"
LABEL cn.homqyy.docker.author="homqyy"
LABEL cn.homqyy.docker.email="yilupiaoxuewhq@163.com"
FROM centos:8
# update yum repos
RUN rm -f /etc/yum.repos.d/* \
&& cd /etc/yum.repos.d/ \
&& curl http://mirrors.aliyun.com/repo/Centos-8.repo > CentOS-Linux-BaseOS.repo \
&& sed -i 's/\$releasever/8-stream/g' CentOS-Linux-BaseOS.repo \
&& cd - \
&& yum clean all \
&& yum makecache
COPY --from=compile /usr/local/hengine/ /usr/local/hengine/
WORKDIR /usr/local/hengine
CMD [ "/usr/local/hengine/sbin/nginx", "-g", "daemon off;" ]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/homqyy/hengine.git
git@gitee.com:homqyy/hengine.git
homqyy
hengine
Hengine
master

搜索帮助