Files
docutranslate/Dockerfile
2025-11-13 22:13:53 +08:00

19 lines
335 B
Docker
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.
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"]