# ── 베이스 이미지 ────────────────────────────────────────── FROM python:3.10-slim # ── 시스템 패키지 ────────────────────────────────────────── RUN apt-get update && apt-get install -y \ build-essential \ curl \ && rm -rf /var/lib/apt/lists/* # ── 작업 디렉토리 ────────────────────────────────────────── WORKDIR /app # ── 패키지 설치 ──────────────────────────────────────────── COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # ── 앱 코드 복사 ─────────────────────────────────────────── COPY app.py . COPY AI_CHAT_GUIDE.md . # ── 캐시 디렉토리 생성 & 권한 설정 ──────────────────────── RUN mkdir -p /tmp && chmod 777 /tmp # ── HuggingFace Spaces 포트 ──────────────────────────────── EXPOSE 7860 # ── 실행 ─────────────────────────────────────────────────── CMD ["python", "app.py"]