添加docker使用说明
This commit is contained in:
@@ -35,4 +35,5 @@ ENTRYPOINT ["uv", "run", "docutranslate", "-i"]
|
|||||||
|
|
||||||
#docker build --build-arg DOC_VERSION=1.5.1 -t xunbu/docutranslate:v1.5.1 .
|
#docker build --build-arg DOC_VERSION=1.5.1 -t xunbu/docutranslate:v1.5.1 .
|
||||||
#docker push xunbu/docutranslate:v1.5.1
|
#docker push xunbu/docutranslate:v1.5.1
|
||||||
#docker run -it -p 8010:8010 xunbu/docutranslate:v1.5.1
|
#docker run -d -p 8010:8010 xunbu/docutranslate:v1.5.4
|
||||||
|
#docker run -it -p 8010:8010 xunbu/docutranslate:v1.5.4
|
||||||
@@ -89,6 +89,14 @@ uv sync
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Using docker
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -d -p 8010:8010 xunbu/docutranslate:latest
|
||||||
|
# docker run -it -p 8010:8010 xunbu/docutranslate:latest
|
||||||
|
# docker run -it -p 8010:8010 xunbu/docutranslate:v1.5.4
|
||||||
|
```
|
||||||
|
|
||||||
## Core Concept: Workflow
|
## Core Concept: Workflow
|
||||||
|
|
||||||
The core of the new DocuTranslate is the **Workflow**. Each workflow is a complete end-to-end translation pipeline designed for a specific file type. Instead of interacting with a massive class, you select and configure a suitable workflow based on your file type.
|
The core of the new DocuTranslate is the **Workflow**. Each workflow is a complete end-to-end translation pipeline designed for a specific file type. Instead of interacting with a massive class, you select and configure a suitable workflow based on your file type.
|
||||||
|
|||||||
@@ -89,6 +89,14 @@ uv sync
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### docker を使用する場合
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -d -p 8010:8010 xunbu/docutranslate:latest
|
||||||
|
# docker run -it -p 8010:8010 xunbu/docutranslate:latest
|
||||||
|
# docker run -it -p 8010:8010 xunbu/docutranslate:v1.5.4
|
||||||
|
```
|
||||||
|
|
||||||
## コアコンセプト:ワークフロー (Workflow)
|
## コアコンセプト:ワークフロー (Workflow)
|
||||||
|
|
||||||
新しい DocuTranslate の核となるのは **ワークフロー (Workflow)** です。各ワークフローは、特定の種類のファイル用に設計された、完全なエンドツーエンドの翻訳パイプラインです。巨大なクラスとやり取りするのではなく、ファイルの種類に基づいて適切なワークフローを選択し、設定します。
|
新しい DocuTranslate の核となるのは **ワークフロー (Workflow)** です。各ワークフローは、特定の種類のファイル用に設計された、完全なエンドツーエンドの翻訳パイプラインです。巨大なクラスとやり取りするのではなく、ファイルの種類に基づいて適切なワークフローを選択し、設定します。
|
||||||
|
|||||||
@@ -90,6 +90,14 @@ uv sync
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### 使用docker
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -d -p 8010:8010 xunbu/docutranslate:latest
|
||||||
|
# docker run -it -p 8010:8010 xunbu/docutranslate:latest
|
||||||
|
# docker run -it -p 8010:8010 xunbu/docutranslate:v1.5.4
|
||||||
|
```
|
||||||
|
|
||||||
## 核心概念:工作流 (Workflow)
|
## 核心概念:工作流 (Workflow)
|
||||||
|
|
||||||
新版 DocuTranslate 的核心是 **工作流 (Workflow)**。每个工作流都是一个专门为特定类型文件设计的、完整的端到端翻译管道。您不再与一个庞大的类交互,而是根据您的文件类型选择并配置一个合适的工作流。
|
新版 DocuTranslate 的核心是 **工作流 (Workflow)**。每个工作流都是一个专门为特定类型文件设计的、完整的端到端翻译管道。您不再与一个庞大的类交互,而是根据您的文件类型选择并配置一个合适的工作流。
|
||||||
|
|||||||
Reference in New Issue
Block a user