FROM python:3.11-slim WORKDIR /app # 필요한 패키지 설치 COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # 앱 복사 COPY . . # ✅ Streamlit 실행 (app.py 또는 web.py 자동 인식) CMD ["bash", "-lc", "if [ -f app.py ]; then streamlit run app.py --server.port ${PORT:-7860} --server.address 0.0.0.0; else streamlit run web.py --server.port ${PORT:-7860} --server.address 0.0.0.0; fi"]