Spaces:
Sleeping
Sleeping
github-actions[bot]
Auto Deploy from Monorepo: chore: update Dockerfile base image and dependency installation steps
588355b | FROM python:3.10-slim | |
| # ์์คํ ์์กด์ฑ ์ค์น (pytesseract ๋ฑ ํ์ํ ๊ฒฝ์ฐ) | |
| RUN apt-get update && apt-get install -y \ | |
| tesseract-ocr \ | |
| libtesseract-dev \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # ์์กด์ฑ ๋ณต์ฌ ๋ฐ ์ค์น | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # ์์ค ์ฝ๋ ๋ณต์ฌ | |
| COPY . . | |
| # Hugging Face Spaces๋ ๊ธฐ๋ณธ์ ์ผ๋ก 7860 ํฌํธ๋ฅผ ์ฌ์ฉํฉ๋๋ค. | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # ์๋ฒ ์คํ (Hugging Face ํ๊ฒฝ์ ๋ง์ถฐ 0.0.0.0:7860 ๋ฐ์ธ๋ฉ) | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |