Spaces:
Sleeping
Sleeping
File size: 556 Bytes
5316931 49345e7 5316931 |
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 |
FROM python:3.10-slim
WORKDIR /app
# ์์คํ
์์กด์ฑ ์ค์น
RUN apt-get update && apt-get install -y \
git \
tesseract-ocr \
poppler-utils \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Python ํจํค์ง ์ค์น
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# ์ฑ ํ์ผ ๋ณต์ฌ
COPY . .
# ํ๊ฒฝ๋ณ์ ์ค์
ENV FLASK_APP=app.py
ENV FLASK_ENV=production
ENV PORT=7860
# ํฌํธ ๋
ธ์ถ
EXPOSE 7860
# Flask ์คํ
CMD ["python", "-m", "flask", "run", "--host=0.0.0.0", "--port=7860"]
|