Files
managepro-docker/README.md
T
AntigravityandCopilot bd19e8d6f1
Build and Push Multi-Arch Docker Image / build-arch (arm64, linux/arm64, arm64) (push) Successful in 2m33s
Build and Push Multi-Arch Docker Image / build-arch (amd64, linux/amd64, amd64) (push) Successful in 4m19s
Build and Push Multi-Arch Docker Image / merge-manifests (push) Successful in 15s
fix(runtime): 升级 PHP 基础镜像至 8.3
将 Docker 基础镜像从 PHP 8.2 升级至 8.3,
并同步更新 README 中的版本说明与构建示例。

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 14:45:38 +08:00

32 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Webman Docker 基础镜像
适用于 [Webman (Workerman)](https://www.workerman.net/doc/webman) 高性能 PHP 常驻内存框架的通用运行与开发环境。
## 特性
- 基于 `php:8.3-cli-alpine`
- 集成 Workerman 核心必需扩展:`pcntl`、`posix`、`event`
- 常用业务扩展:`pdo_mysql`、`redis`、`gd`、`zip`、`bcmath`、`opcache`、`intl`
- 内置 Composer 2.x 并默认配置阿里云镜像源加速
- 默认工作目录 `/app`,暴露端口 `8500`
## 构建方法
### 本地构建
```bash
docker build -t webman:8.3 .
```
### Gitea Actions 自动构建与发布
已配置 `.gitea/workflows/build.yml`。采用**混合原生双架构矩阵构建**:
- **`linux/amd64`**:由 Gitea Actions 的 `ubuntu-latest` Runner 原生构建
- **`linux/arm64`**:由组织 Self-Hosted ARM Runner 原生硬件全速构建
- 自动合并生成多架构 Manifest 并发布到 Gitea Container Registry:
- **Registry**: `git.openlocalpdf.com/gitea/webman-docker:latest`
(或对应 tag 如 `:v1.0.0`)
- 请在 Gitea 仓库的 Actions Secrets 中配置 `REGISTRY_TOKEN`,其需要具备
写入包(Package)的权限。
- 无论是在 x86_64 服务器、云主机还是本地 Apple Silicon / ARM 设备上,Docker 都会自动拉取匹配本机架构的镜像运行。