FROM python:3.10-slim # 시스템 패키지: COLMAP, ffmpeg RUN apt-get update && apt-get install -y --no-install-recommends \ colmap \ ffmpeg \ git \ && rm -rf /var/lib/apt/lists/* # 작업 디렉토리 WORKDIR /app # Python 패키지 설치 COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # 앱 복사 COPY . . # workspace 디렉토리 생성 & 권한 RUN mkdir -p /app/workspace /app/static && chmod -R 777 /app/workspace /app/static # HF Spaces는 포트 7860을 기본으로 사용 EXPOSE 7860 # Streamlit 실행 CMD ["streamlit", "run", "app.py", \ "--server.port=7860", \ "--server.address=0.0.0.0", \ "--server.headless=true", \ "--browser.gatherUsageStats=false"]