
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://github.com/IYism/docker-tengine/actions/workflows/build-alpine3-image.yml/badge.svg](https://github.com/IYism/docker-tengine/actions/workflows/build-alpine3-image.yml)
A production-ready, multi-architecture Docker image for https://github.com/alibaba/tengine, Alibaba's high-performance web server based on Nginx. Optimized for modern web applications with Lua scripting, GMSSL support, and advanced compression.
| Feature | Description |
|---|---|
| GMSSL/NTLS | National ***graphic algorithms (SM2/SM3/SM4) via https://github.com/Tongsuo-Project/Tongsuo |
| Lua Scripting | Dynamic request handling with https://github.com/openresty/luajit2 and https://github.com/openresty/lua-nginx-module |
| PCRE2 JIT | High-performance regular expressions with JIT compilation |
| Brotli Compression | Modern compression algorithm for faster content delivery |
| GeoIP2 | IP geolocation using MaxMind databases |
| Multi-Platform | Supports linux/amd64 and linux/arm64 architectures |
| Multi-OS | Available for Alpine, Ubuntu, Debian, Fedora, and Rocky Linux |
bash# Pull from Docker Hub docker pull sungyism/tengine:latest # Run container docker run -d -p 80:80 -p 443:443 --name tengine sungyism/tengine:latest # Test Lua functionality curl http://localhost/get_json
| Tag | Base Image | Architecture |
|---|---|---|
latest | Alpine 3 | amd64, arm64 |
3.1.0-alpine-3 | Alpine 3 | amd64, arm64 |
3.1.0-ubuntu-24.04 | Ubuntu 24.04 | amd64, arm64 |
3.1.0-debian-12 | Debian 12 | amd64, arm64 |
3.1.0-fedora-41 | Fedora 41 | amd64 |
3.1.0-rockylinux-9 | Rocky Linux 9 | amd64, arm64 |
bashdocker run -d \ -p 80:80 \ -p 443:443 \ --name tengine \ sungyism/tengine:latest
bashdocker run -d \ -p 80:80 \ -p 443:443 \ -v /path/to/nginx.conf:/etc/nginx/nginx.conf \ -v /path/to/conf.d:/etc/nginx/conf.d \ -v /path/to/ssl:/etc/nginx/ssl \ -v /path/to/html:/data/public \ --name tengine \ sungyism/tengine:latest
yamlversion: '3.8' services: tengine: image: sungyism/tengine:latest ports: - "80:80" - "443:443" volumes: - ./nginx.conf:/etc/nginx/nginx.conf - ./conf.d:/etc/nginx/conf.d - ./ssl:/etc/nginx/ssl restart: unless-stopped
nginxserver { listen 443 ssl; server_name localhost; enable_ntls on; # SM2 sign certificate ssl_sign_certificate /etc/nginx/ssl/SS.cert.pem; ssl_sign_certificate_key /etc/nginx/ssl/SS.key.pem; # SM2 encryption certificate ssl_enc_certificate /etc/nginx/ssl/SE.cert.pem; ssl_enc_certificate_key /etc/nginx/ssl/SE.key.pem; ssl_ciphers "ECC-SM2-SM4-CBC-SM3:ECC-SM2-SM4-GCM-SM3:ECDHE-SM2-SM4-CBC-SM3:ECDHE-SM2-SM4-GCM-SM3"; ssl_protocols TLSv1.2 TLSv1.3; location / { return 200 "GMSSL connection established: $ssl_protocol"; } }
bash# Build default Alpine image docker build -t tengine:local . # Build with specific Tengine version docker build --build-arg TENGINE_VERSION=3.0.0 -t tengine:3.0.0 . # Build specific OS variant docker build -f ubuntu/24.04/Dockerfile -t tengine:ubuntu24 . docker build -f debian/12/Dockerfile -t tengine:debian12 . docker build -f fedora/41/Dockerfile -t tengine:fedora41 . docker build -f rockylinux/9/Dockerfile -t tengine:rockylinux9 . # Build multi-platform image docker buildx build --platform linux/amd64,linux/arm64 -t tengine:latest .
| Module | Description |
|---|---|
| ngx_tongsuo_ntls | GMSSL/NTLS national ***graphy support |
| mod_config | Dynamic configuration |
| mod_dubbo | Dubbo RPC integration |
| mod_strategy | Load balancing strategy |
| ngx_http_concat_module | CSS/JS concatenation |
| ngx_http_proxy_connect_module | HTTP CONNECT method support |
| ngx_http_reqstat_module | Request statistics |
| ngx_http_sysguard_module | System resource protection |
| ngx_http_upstream_check_module | Active health checks |
| ngx_http_upstream_dynamic_module | Dynamic upstream resolution |
| ngx_http_upstream_dyups_module | Dynamic upstream management |
| ngx_http_upstream_session_sticky_module | Session persistence |
| ngx_http_upstream_vnswrr_module | Virtual node smooth weighted round-robin |
| Module | Description |
|---|---|
| https://github.com/vision5/ngx_devel_kit | Nginx Development Kit |
| https://github.com/openresty/echo-nginx-module | Echo directives for debugging |
| https://github.com/openresty/headers-more-nginx-module | Set/clear input/output headers |
| https://github.com/leev/ngx_http_geoip2_module | GeoIP2 lookup |
| https://github.com/google/ngx_brotli | Brotli compression |
| https://github.com/openresty/lua-nginx-module | Embed Lua into Nginx |
| https://github.com/openresty/stream-lua-nginx-module | Lua for stream module |
| Library | Version |
|---|---|
| https://github.com/openresty/lua-resty-core | 0.1.31 |
| https://github.com/openresty/lua-resty-lrucache | 0.15 |
| https://github.com/openresty/lua-resty-lock | 0.09 |
| https://github.com/openresty/lua-resty-string | 0.16 |
| https://github.com/openresty/lua-cjson | 2.1.0.14 |
| Path | Description |
|---|---|
/etc/nginx/ | Configuration directory |
/etc/nginx/nginx.conf | Main configuration file |
/etc/nginx/conf.d/ | Virtual host configurations |
/etc/nginx/ssl/ | SSL/TLS certificates |
/opt/tengine/ | Tengine home directory |
/opt/tengine/lualib/ | Lua libraries |
/opt/tengine/luamod/ | Lua C modules |
/var/log/nginx/ | Log files |
/docker-entrypoint.d/ | Initialization scripts |
| Variable | Description |
|---|---|
LUA_PATH | Lua module search path |
LUA_CPATH | Lua C module search path |
80 - HTTP443 - HTTPSContributions are welcome! Please feel free to submit issues, pull requests, or suggestions.
This project is licensed under the MIT License - see the LICENSE file for details.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务