nexus-ai-api / Dockerfile
github-actions[bot]
Auto Deploy from Monorepo: chore: update Dockerfile base image and dependency installation steps
588355b
raw
history blame contribute delete
614 Bytes
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"]