cert-study-app / Dockerfile
Kentlo's picture
๐Ÿš€ Deploy to Hugging Face Spaces (removed large files)
49345e7
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"]