From 798a5b5fe2de24407d21fa432d4bd4e24e2a788a Mon Sep 17 00:00:00 2001 From: xunbu Date: Thu, 13 Nov 2025 22:13:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BE=9BDockerFile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..67db7c4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM python:3.11-slim +LABEL authors="xunbu" + +# 设置工作目录 +WORKDIR /app + +# 安装 DocuTranslate +RUN pip install --no-cache-dir uv +RUN uv init +RUN uv add -U docutranslate + +# 设置环境变量 +ENV DOCUTRANSLATE_PORT=8010 + +# 暴露端口(Web UI 默认端口) +EXPOSE 8010 + +# 启动命令 +CMD ["uv" ,"run","docutranslate", "-i"] \ No newline at end of file