# HuggingFace Spaces — 노코딩 Python+ 배포용 FROM python:3.11-slim # 한글 폰트 및 기본 패키지 설치 RUN apt-get update && apt-get install -y \ fonts-nanum \ fontconfig \ && fc-cache -fv \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # Python 패키지 먼저 설치 (캐시 활용) COPY requirements.txt . RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir -r requirements.txt # 앱 파일 전체 복사 COPY . . # static/ 폴더 생성 후 파일 이동 (루트에 업로드된 경우 대응) RUN mkdir -p static uploads results && \ for f in app.js index.html style.css; do \ [ -f "$f" ] && mv "$f" static/ || true; \ done EXPOSE 7860 CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]