🧪 添加 FileCodeBox 测试环境配置

This commit is contained in:
Orion
2026-06-05 08:43:54 +08:00
parent 9081cf3b6d
commit 6b7bae9105
3 changed files with 38 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
FROM lanol/filecodebox:beta
COPY fcb_extra_patch.py /tmp/fcb_extra_patch.py
RUN python /tmp/fcb_extra_patch.py && rm -f /tmp/fcb_extra_patch.py
+16
View File
@@ -0,0 +1,16 @@
# FileCodeBox 测试环境
当前测试环境用于验证 `test/custom-admin-ui` 分支里的自定义镜像补丁,不影响生产环境。
- 容器名:`filecodebox-test`
- 镜像:`local/filecodebox:test-custom-admin-ui`
- 端口:`127.0.0.1:40158 -> 12345`
- 数据:`/opt/1panel/apps/filecodebox/filecodebox-test/data`,从生产 `/app/data` 复制而来
- 生产容器:`filecodebox`,继续使用官方镜像 `lanol/filecodebox:beta`
验证:
```bash
curl -fsS http://127.0.0.1:40157/ | grep -qv fcb-analytics.js
curl -fsS http://127.0.0.1:40158/ | grep 'fcb-analytics.js?v='
```
+19
View File
@@ -0,0 +1,19 @@
networks:
1panel-network:
external: true
services:
filecodebox-test:
container_name: filecodebox-test
image: local/filecodebox:test-custom-admin-ui
build:
context: ./custom
labels:
createdBy: Apps
env: test
networks:
- 1panel-network
ports:
- 127.0.0.1:40158:12345
restart: unless-stopped
volumes:
- ./data:/app/data