Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -9,5 +9,5 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 9 |
# 앱 복사
|
| 10 |
COPY . .
|
| 11 |
|
| 12 |
-
# ✅
|
| 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"]
|