sesacna commited on
Commit
ccad457
·
verified ·
1 Parent(s): 9c4c34a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -9,5 +9,5 @@ RUN pip install --no-cache-dir -r requirements.txt
9
  # 앱 복사
10
  COPY . .
11
 
12
- # ✅ Hugging Face용 Streamlit 실행 (PORT 환경변수 처리 완벽)
13
- CMD ["bash", "-lc", "streamlit run app.py --server.port ${PORT:-7860} --server.address 0.0.0.0"]
 
9
  # 앱 복사
10
  COPY . .
11
 
12
+ # ✅ Streamlit 실행 (app.py 또는 web.py 자동 인식)
13
+ 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"]