本地shadowsocks修改为国内镜像方案

This commit is contained in:
2026-06-03 16:33:45 +08:00
parent e95ccb6d05
commit 093da7722a
2 changed files with 25 additions and 31 deletions
+4 -12
View File
@@ -9,7 +9,6 @@ services:
build:
context: .
dockerfile: Dockerfile
network: host # 构建时走宿主机网络(国内访问 ROCm 源需要)
args:
# ---- 按你的 GPU 修改 ----
# gfx1201 = RX 9070 / 9070 XT / 9070 GRE
@@ -18,9 +17,10 @@ services:
# gfx1101 = RX 7800 XT / 7700 XT
# gfx1030 = RX 6950 / 6900 / 6800 系列
ARCH: gfx1201
# ---- 代理(国内必需)----
HTTP_PROXY: http://127.0.0.1:8118
HTTPS_PROXY: http://127.0.0.1:8118
# ---- GitHub 加速代理(国内构建用,若 ghproxy 不可用请更换)----
# GH_PROXY: https://ghproxy.com/
# ---- PyPI 镜像(国内构建用)----
# PIP_INDEX: https://pypi.tuna.tsinghua.edu.cn/simple
container_name: mineru-rocm
stdin_open: true
tty: true
@@ -39,8 +39,6 @@ services:
group_add:
- video # /dev/dri/render* 权限
- render # /dev/kfd 权限
# 如果要与宿主机用户对齐,取消下面注释并改为你的 UID/GID
# user: "${UID:-1000}:${GID:-1000}"
# ---- 环境变量 ----
environment:
@@ -59,12 +57,6 @@ services:
- ${MIOPEN_CACHE:-./data/miopen}:/root/.cache/miopen
# ---- 启动命令(默认 bash,可改)----
# 例如直接处理 PDF:
# command: mineru -p /data/input/example.pdf -o /data/output -b hybrid-auto-engine
# 启动 WebUI:
# command: mineru-gradio --server-name 0.0.0.0 --server-port 7860
# 启动 API:
# command: mineru-api --host 0.0.0.0 --port 8000
command: bash
# ---- 端口(WebUI / API 模式时启用)----