File size: 2,670 Bytes
179eccc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[**์‹œ์ž‘ํ•˜๊ธฐ**](./getting-started.md) > **์„ค์น˜** > **Docker** _(ํ˜„์žฌ)_

---

### docker ๋ฅผ ํ†ตํ•ด PDFMathTranslate ์„ค์น˜ํ•˜๊ธฐ

#### Docker ๋ž€ ๋ฌด์—‡์ธ๊ฐ€?

[Docker](https://docs.docker.com/get-started/docker-overview/) ๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๊ฐœ๋ฐœ, ๋ฐฐ์†ก ๋ฐ ์‹คํ–‰ํ•˜๊ธฐ ์œ„ํ•œ ์˜คํ”ˆ ํ”Œ๋žซํผ์ž…๋‹ˆ๋‹ค. Docker ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์ธํ”„๋ผ์—์„œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋ถ„๋ฆฌํ•˜์—ฌ ์†Œํ”„ํŠธ์›จ์–ด๋ฅผ ๋น ๋ฅด๊ฒŒ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. Docker ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๊ด€๋ฆฌํ•˜๋Š” ๊ฒƒ๊ณผ ๊ฐ™์€ ๋ฐฉ์‹์œผ๋กœ ์ธํ”„๋ผ๋ฅผ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. Docker ์˜ ์ฝ”๋“œ ๋ฐฐ์†ก, ํ…Œ์ŠคํŠธ ๋ฐ ๋ฐฐํฌ ๋ฐฉ๋ฒ•๋ก ์„ ํ™œ์šฉํ•˜๋ฉด ์ฝ”๋“œ ์ž‘์„ฑ๊ณผ ํ”„๋กœ๋•์…˜ ํ™˜๊ฒฝ์—์„œ ์‹คํ–‰ ์‚ฌ์ด์˜ ์ง€์—ฐ์„ ํฌ๊ฒŒ ์ค„์ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

#### ์„ค์น˜

<h4>1. ํ’€ํ•˜๊ณ  ์‹คํ–‰ํ•˜๊ธฐ:</h4>

```bash
docker pull awwaawwa/pdfmathtranslate-next
docker run -d -p 7860:7860 awwaawwa/pdfmathtranslate-next
```

> [!NOTE]
> 
> - Docker Hub ์— ์ ‘๊ทผํ•  ์ˆ˜ ์—†๋Š” ๊ฒฝ์šฐ, [GitHub Container Registry](https://github.com/PDFMathTranslate-next/PDFMathTranslate-next/pkgs/container/pdfmathtranslate) ์˜ ์ด๋ฏธ์ง€๋ฅผ ์‚ฌ์šฉํ•ด ๋ณด์„ธ์š”.
> 
> ```bash
> docker pull ghcr.io/pdfmathtranslate-next/pdfmathtranslate-next
> docker run -d -p 7860:7860 ghcr.io/pdfmathtranslate-next/pdfmathtranslate-next
> ```

<h4>2. ๊ธฐ๋ณธ ๋ธŒ๋ผ์šฐ์ €์—์„œ ์ด URL ์„ ์ž…๋ ฅํ•˜์—ฌ WebUI ํŽ˜์ด์ง€๋ฅผ ์—ฝ๋‹ˆ๋‹ค:</h4>

```
http://localhost:7860/
```

> [!NOTE]
> WebUI ์‚ฌ์šฉ ์ค‘ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด [์‚ฌ์šฉ๋ฒ• --> WebUI](./USAGE_webui.md) ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.

> [!NOTE]
> ๋ช…๋ น์ค„ ์‚ฌ์šฉ ์ค‘ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด [์‚ฌ์šฉ๋ฒ• --> Command Line](./USAGE_commandline.md) ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.
<!-- 
#### For docker deployment on cloud service:

<div>
<a href="https://www.heroku.com/deploy?template=https://github.com/PDFMathTranslate-next/PDFMathTranslate-next">
  <img src="https://www.herokucdn.com/deploy/button.svg" alt="Deploy" height="26"></a>
<a href="https://render.com/deploy">
  <img src="https://render.com/images/deploy-to-render-button.svg" alt="Deploy to Koyeb" height="26"></a>
<a href="https://zeabur.com/templates/5FQIGX?referralCode=reycn">
  <img src="https://zeabur.com/button.svg" alt="Deploy on Zeabur" height="26"></a>
<a href="https://app.koyeb.com/deploy?type=git&builder=buildpack&repository=github.com/PDFMathTranslate-next/PDFMathTranslate-next&branch=main&name=pdf-math-translate">
  <img src="https://www.koyeb.com/static/images/deploy/button.svg" alt="Deploy to Koyeb" height="26"></a>
</div>

-->

<div align="right"> 
<h6><small>์ด ํŽ˜์ด์ง€์˜ ์ผ๋ถ€ ๋‚ด์šฉ์€ GPT ์— ์˜ํ•ด ๋ฒˆ์—ญ๋˜์—ˆ์œผ๋ฉฐ ์˜ค๋ฅ˜๊ฐ€ ํฌํ•จ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.</small></h6>