File size: 743 Bytes
02bca29 | 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 32 | 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"]
|